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

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

i was solving this problem and after making few submissions i thought now it would pass, but i got wrong answer on test two,cause 256th number differs :(

here is my submission: https://mirror.codeforces.com/contest/1736/submission/218110763

it says out of bounds on long long. how could this happen with the given constraints.

what's more i can't see that test-case. so, i wanted ask whether someone can help me for this one.

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

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

You can actually view the 256th test input by using a for loop instead of while(t--) and passing i+1 aa parameter in the solve function.

After doing this just use par (formal parameter)==256 then print input. Also use, if t==3 then run the program normally and return otherwise you will get WA on tc 1.