提交时间:2024-01-23 16:42:35
运行 ID: 125299
#include<iostream> #include<cstdio> using namespace std; int main() { int a,b; cin>>a>>b; if(a<=1&&b<=1){cout<<18; }else if(a<=1&&b>1){cout<<18+2*(b-1); }else if(a>1&&b<=1){cout<<18+2*(a-1); }else if(a>1&&b>1){cout<<18+2*(a+b-2); } return 0; }