Editorial for WC '17 Contest 4 J3 - The Infinity Stones


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.

We'll need to iterate over the 6 Infinity Stone names in alphabetical order and output each one that's not present in the given list of N names. To determine whether a certain Infinity Stone name s should be outputted, we can iterate over all N of the given names while keeping track of whether or not we've found one which is equal to s.


Comments

There are no comments at the moment.