Please read the new rule regarding the restriction on the use of AI tools. ×

ImagineWarrior's blog

By ImagineWarrior, history, 9 years ago, In English

http://codeforces.net/contest/570/submission/12498380 this code should be wrong answer. But this code passed all the system test.

For 5 3, 11 6 this kind of input my local pc generate garbage value which is logically right. Then check in Codeforces "CUSTOM INVOCATION". In CUSTOM INVOCATION, Without initialization local variable set as 0. Then Above code should be generate 0 for 11 6 input. But its generate 5. How is it possible ???

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
9 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

This is code OK for all type of judge input.the 18 no case is this type of input which pass.

But this type of input must be given garbage value for this code.