#13822: 解題心得


weiye (weiye)


關鍵點: 10007 是質數

利用費馬小定理,可得 a^10006 ≡ 1 (mod 10007)