Aayuushh19's blog

By Aayuushh19, history, 2 years ago, In English

https://mirror.codeforces.com/contest/1715/problem/A

void solve(){ ll n,m;cin>>n>>m; if(n==1 and m==1){ cout<<0<<endl; return; } ll a = m-1; ll b = n-1; ll c = min(n,m)-1; cout<<a+b+c+1<<endl;

}

  • Vote: I like it
  • -24
  • Vote: I do not like it