Sichuan University Programming Contest 2014 Final Warmup

C: