Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

wow my wrong code passed test in E

Revision en2, by p_321052, 2022-05-19 20:52:06

https://codeforces.com/contest/1684/submission/157727918

this is my code for case

1

5 1

1 2 3 4 5

my code outputs 4 and the answer is 0 because you can move 5 to 0 yet, my code passed systest. in my code, if some number is maximum MEX and is given as input, it can't be detected as MEX.

i mean...this was very strange experience in my codeforces life.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English p_321052 2022-05-19 20:52:06 8
en1 English p_321052 2022-05-19 20:51:39 401 Initial revision (published)