Sichuan University Programming Contest 2017 Final Warmup

C: windy's cake V