Editorial for COCI '10 Contest 3 #4 Znanstvenik
Submitting an official solution before solving the problem yourself is a bannable offence.
It is important to notice that if it is possible to delete
Now we need an efficient method to check, for a given
The described solution can be implemented with complexity
An alternative solution could use hashing of individual columns, reducing column comparison to simple integer comparison (reducing complexity in the process). The details of this solution are left as an exercise for the reader.
Comments