World Finals: Power Swapper

25 correct small sets and 19 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (35 sets)
Java (7 sets)
D (2 sets)

Submission Origin

Russia (6 contestants)
Belarus (4 contestants)
China (3 contestants)
Japan (3 contestants)
Ukraine (2 contestants)
Brazil (1 contestant)
Bulgaria (1 contestant)
Czech Republic (1 contestant)
Poland (1 contestant)
South Korea (1 contestant)
Taiwan (1 contestant)
United States (1 contestant)