ACM第五乐章--数论
摘要:
/*Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).*/#include<stdio.h>#include<string.h>long long mod = 9901;long long exp(long long a,long long b,long long c){ long long ans = 1; while( 阅读全文
posted @ 2012-10-30 09:18 aigoruan 阅读(181) 评论(0) 推荐(0)