Editorial for WC '15 Contest 3 J1 - Battle Predictions


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

As a basic implementation problem, the key is to read the statement very carefully. In this case, it is simply a matter of comparing the correct values in the input with each other and not getting mixed up with what each variable means. The catch here is that to know who wins, we must compare the powers of the superheroes in the opposite categories, rather than the same categories. That is, attack values must always be compared with defense values and vice versa.


Comments

There are no comments at the moment.