IOI 2013 (Day 2)

IOI 2013 Day 2, without the (now explicitly excluded from IOI syllabus) problem Game.