Cod sursa(job #1569485)
Utilizator | Data | 15 ianuarie 2016 17:00:09 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.24 kb |
#include<fstream>
#include<cmath>
using namespace std;
int main()
{
long long x;int y;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
fin>>x>>y;
fout<<(int)pow(x,y)%1999999973;
fin.close();
fout.close();
return 0;
}