Google Code Jam 2013 R1C
Problem B. Pogo
large