Codeforces Round #613 (Div. 2)D(贪心,分治)

NoSuchKey