Sichuan University Programming Contest 2017 Final Warmup

B: KNN