Codeforces Round #514 (Div. 2) C. Sequence Transformation(思路,数论)

NoSuchKey