链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3641 Information Sharing Time Limit: 3 Seconds Memory Limit: 65536 KB There is going to be a test in the kinde
题目链接 Description Fermat’s theorem states that for any prime number p and for any integer a > 1, ap = a (mod p). That is, if we raise a to the pth power and divide by p, the remainder is a. Some (but