.redo.'s blog

By .redo., 9 years ago, In English

I submited solution to 493C and it says WA on test n.12, but the exactly same code produces good output on my computer, how is that possible? Here what I get on my computer

3

1 1 1

4

1 3 1 1 6:8

Process returned 0 (0x0) execution time : 2.257 s Press any key to continue.

But on tester I get 8:12 and it is WA. Here is my code http://pastebin.com/GDR7ALAt

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

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

provide link to your code on ideone.com or some other resource.

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

find the difference :) Your submission, but AC 9243696
don`t read long long as int, it may cause UB