Codeforces Round #632 (Div. 2)F. Kate and imperfection(逆向、贪心、因子)

NoSuchKey