strawhatdragon's blog

By strawhatdragon, history, 4 days 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

»
4 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Read the problem statement again. Especially the part where they explain when the dragon is defeated and you should have it :)

»
4 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Yeah, just re read the problem statement.

»
4 days 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.