Cod sursa(job #546334)
Utilizator | Data | 4 martie 2011 19:46:08 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.17 kb |
# include <fstream.h>
# include <math.h>
ifstream f("lgput.in");
ofstream g("lgput.out");
int n,p;
int main()
{f>>n>>p;
g<<pow(n,p);
f.close();
g.close();
return 0;}