Final Round: Taking Over The World

20 correct small sets and 3 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (20 sets)
Java (3 sets)

Submission Origin

Japan (4 contestants)
Russia (4 contestants)
Belarus (2 contestants)
China (2 contestants)
Poland (2 contestants)
Taiwan (2 contestants)
Germany (1 contestant)
South Africa (1 contestant)
Sweden (1 contestant)
Ukraine (1 contestant)