#Lutece1418. Endless Iteration
Endless Iteration
Migrated from Lutece 1418 Endless Iteration
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
记。求在模意义下的值。
Input
第一行一个整数(),表示数据组数
接下来行,每行一个整数(),表示模数.
Output
共行,每行一个整数,表示模意义下的答案.
Samples
3
2
3
6
0
1
4
Note
表示迭代了次
Resources
2016 UESTC Training for Math