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

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

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://codeforces.net/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
  • Проголосовать: не нравится

»
15 месяцев назад, # |
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.

  • »
    »
    15 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    what can i do then? UPD: you can update your comment to write your advise

    • »
      »
      »
      15 месяцев назад, # ^ |
      Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

      I am sorry I misread the question in a hurry which resembled a similar question in a recent contest, please ignore it.

      UPD: I have updated the comment.