dd_07's blog

By dd_07, history, 3 years ago, In English

Can any one help me out with this problem. It's showing wa on in this test case - 2 8 5 9 2 Jury's ans is 290 and it's showing mine is 288, but when I am trying out the same in my own compiler it's showing 290 only. 147882703

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

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Dry run your submission on this testcase: Ticket 695

Now, swap testcase 1 and 2 and dry run your submission on:

Input

After that, it should be easy to figure out the error.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    why the ans is changing when we are changing the order??