Codeforces Round #480 (Div. 2)980C Posterized+分组类贪心

NoSuchKey