Cod sursa(job #195028)
Utilizator | Data | 16 iunie 2008 00:46:11 | |
---|---|---|---|
Problema | Cifra | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream.h>
#include <fstream.h>
#include <math.h>
void main()
{
ifstream f("cifra.in");
ofstream g("cifra.out");
int s=0,k=0,n,t;
f<<t<<endl;
for (k=1;k<=t;k++)
s=s+pow(k,k);
;
s=s/10;
g<<s;
f.close();
g.close();
}