This is the problem (https://codeforces.me/group/wlb0UYQSQF/contest/644248/problem/H)
It was asked last year in indian ICPC mock contests..
I had solved it before! I used the same code, coz why not? Its allowed..
And testcases are weak too, i had by mistakenly ignored all elements greater than N+64, and still got AC!








Auto comment: topic has been updated by Hyder1102 (previous revision, new revision, compare).
Auto comment: topic has been updated by Hyder1102 (previous revision, new revision, compare).
Auto comment: topic has been updated by Hyder1102 (previous revision, new revision, compare).
Source of the provided problem if we dig even deeper: Link
XXI Open Cup, Grand Prix of Korea, problem H.
However, I believe contest quality was good. Thanks for the authors!
Is your avatar Natsumi? She's so cute
Yes, Natsumi Kyouno
I think that's just a normal observation. If we assume that a 0 is worth 1 point and a 1 is worth 1 point, then making a 2 requires a 0 and 1, or at least 2 points, making a 3 requires a 0, 1, and 2, so 4 points, 8 points, etc. So increasing the mex takes a horrifically exponential amount of points and you correctly concluded that it won't happen beyond like 40 or 50 or 60.