1715A---- A better Approach

Правка en1, от Aayuushh19, 2022-08-21 05:22:44

https://codeforces.net/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;

}

Теги maths, constructive algorithms, *800

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Aayuushh19 2022-08-21 05:22:44 275 Initial revision (published)