Cod sursa(job #1628137)
Utilizator | Data | 3 martie 2016 21:19:39 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.21 kb |
#include <fstream>
#include <cmath>
using namespace std;
ifstream in ("lgput");
ofstream out("lgput");
int main()
{
int N,P,x,z;
in>>N>>P;
x=pow(N,P);
z=x%1999999973;
out<<z;
return 0;
}