Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link https://codeforces.com/10years. ×

selfcompiler's blog

By selfcompiler, 7 years ago, In English,

[problem:http://codeforces.com/contest/268/problem/C] HELP me in this problem can any one explain the logic behind this ?

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

»
7 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

All our points are on the diagonal of the square (0;abs(n-m))(min(n,m);abs(n-m))(0;max(n,m))(min(n,m);max(n,m)). Am I mistaken?