Блог пользователя Hyder1102

Автор Hyder1102, история, 3 часа назад, По-английски

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!

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
3 часа назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Hyder1102 (previous revision, new revision, compare).

»
3 часа назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Hyder1102 (previous revision, new revision, compare).

»
3 часа назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Hyder1102 (previous revision, new revision, compare).

»
2 часа назад, скрыть # |
Rev. 2  
Проголосовать: нравится +10 Проголосовать: не нравится

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!

»
30 минут назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

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.