Codeforces Round #433 (Div. 2)( 模拟 + 思维 + 贪心 + dp )

NoSuchKey