Cod sursa(job #190399)
Utilizator | Data | 21 mai 2008 23:23:05 | |
---|---|---|---|
Problema | Suma divizorilor | Scor | 30 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
# include <stdio.h>
# include <math.h>
long long a,b,i,s,x;
int main ()
{
freopen ("sumdiv.in","r",stdin);
freopen ("sumdiv.out","w",stdout);
scanf ("%lli",&a);
scanf ("%lli",&b);
x=pow(a,b);
for (i=1;i<=x;i++)
if (x%i==0)
s=s+i;
printf ("%lli",s%9901);
return 0;
}