Codeforces Round #604 (Div. 2) C - Beautiful Regional Contest(贪心)

NoSuchKey