Codeforces Round #480 (Div. 2) E. The Number Games(贪心)

NoSuchKey