Kattis ICPC World Finals 2015 Warmup 5

Standings

First to solve Solved Attempted Pending judgement