CSES - JBOI 2014, day 2 - Tickets
  • Time limit: 0.10 s
  • Memory limit: 64 MB