提交时间:2024-01-23 16:42:49

运行 ID: 125305

#include <bits/stdc++.h> using namespace std; int main() { int s,w; cin>>s>>w; if(s==1){ if(w<=1) cout<<8 ; else cout<<w-1+8; }if(s==0){ if(w<=1) cout<<10; else cout<<(w-1)*2+10; } return 0; }