Erroneous Editorial of CF#260, problem 456A

Revision en1, by Neel_Knight, 2021-08-29 05:50:48

Hi!

I know the quoted round and problem is really old, but, just for the sake of correctness of the editorial for all those who might stumble upon it while practicing from the a2oj ladders, I believe an update to reflect the correct solution/approach would be nice and help prevent confusion.

This is the problem: https://codeforces.com/contest/456/problem/A

And, this is the editorial: https://codeforces.com/blog/entry/13336

The editorial says a check to compare all a[i] to b[i] should be sufficient to solve the problem whereas it isn't. The following sample case would print "Happy Alex" whereas it should print "Poor Alex".

Case: 5 1 1 2 2 3 3 4 25 5 30

Tags mike mirzayanov, netman

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Neel_Knight 2021-08-29 05:50:48 727 Initial revision (published)