goextreme's blog

By goextreme, history, 10 months 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.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.

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

»
10 months ago, # |
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.

  • »
    »
    10 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

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

    • »
      »
      »
      10 months ago, # ^ |
      Rev. 3   Vote: I like it 0 Vote: I do not like it

      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.

  • »
    »
    10 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    thanks :)