goextreme's blog

By goextreme, history, 3 years ago, In English

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.me/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.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
3 years ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

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.