World Final: Lights

2 correct small sets and 1 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (2 sets)
Java (1 set)

Submission Origin

China (1 contestant)
Japan (1 contestant)