提交时间:2024-01-23 16:39:24
运行 ID: 125260
#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a==1) { if(b>1) { cout<<8+(b-1); } else { cout<<8<<endl; } } else { if(b>1) { cout<<10+(b-1)*2; } else { cout<<10<<endl; } } }