strawhatdragon's blog

By strawhatdragon, history, 4 years ago, In English

While solving 230A I came across a failing test case 104218672 1 2 1 0 1 0

This is should result in YES, I think, but the judges say that it is NO. Can someone explain to me why this is NO?

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

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

Note that in the problem statement, there is "But if Kirito's strength is greater than the dragon's strength, then he defeats the dragon and gets a bonus strength".

I think here 'greater' means > but not >=, and there in your test case, he could not defeat any dragons.