Codeforces 1244 G Running in Pairs —— 贪心

NoSuchKey