CSES - APIO 2014 - Beads and wires
  • Time limit: 1.00 s
  • Memory limit: 128 MB