Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 2)C. Alternati(费马小定理求逆元+等比数列求和)

NoSuchKey