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
浙公网安备 33010602011771号