Cod sursa(job #1275305)
| Utilizator | Data | 24 noiembrie 2014 23:19:26 | |
|---|---|---|---|
| Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.2 kb |
#include <fstream>
#include <cmath>
int N,P;
using namespace std;
ifstream f("lgput.in");
ofstream g("lgput.out");
int main()
{ f>>N>>P;
g<<pow(N,P);
g.close();
f.close();
}
