Educational Codeforces Round 45 (Rated for Div. 2) 990B. Micro-World [ 贪心 ]

NoSuchKey