View problem - Beads and wires (APIO14_beads)

Time limitMemory limit# of submissions# of submitted usersSolved #Accepted user ratio
1000 ms128 MiB173633821363.02%

For this judge, DO NOT use beads.in / beads.out as input/output files -- use stdin and stdout instead.

{{viewpdf:statement_en_US}}

Problem Source