P11145 题解

· · 题解

随便问一个很大的 x,你可以得到 y=x\bmod m,那么我们有 m\mid x-y

然后你发现 (x-y-1)\bmod m=m-1,做完了。