This problem is in Contest(s) below:
Contest 1593:早年提高套题集合_做3个半小时提交评测
Contest 1247:noip2012提高组真题
Contest 1432:进阶指南例题4-数学知识31~34
Contest 1473:进阶指南例题4-数学知识31~34-Copy
Contest 1540:进阶指南例题4-数学知识31~34
Contest 1715:进阶指南例题4-数学知识31~34
Contest 1118:专题十五_数论类(gcd_exgcd_欧拉_逆元_快速幂等)更新中