Sichuan University Programming Contest 2014 Final Warmup

D: Citycan's Function(II)