Cod sursa(job #930974)
Utilizator | Data | 27 martie 2013 22:07:18 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.26 kb |
#include <fstream>
#include <math.h>
using namespace std;
int main ()
{
int a,b;
int p;
ifstream fin("putere.in");
fin >> a;
fin >> b;
fin.close();
ofstream fout("putere.out");
fout << pow(a,b);
fout.close();
}