Pagini recente » Rating Crocko de la Strehaia (c909059) | Cod sursa (job #389970) | Cod sursa (job #2034274) | Istoria paginii utilizator/ramonagabriela09 | Cod sursa (job #1487848)
#include <iostream>
#include <fstream>
using namespace std;
long long N,P;
long long putere( long long x, int p)
{
int m=1999999973;
if (p==0)
return 1;
long long aux=putere (x,p/2);
if (p%2==0)
return aux*aux%m;
return aux*aux*x%m;
}
int main()
{
ifstream f("lgput.in");
ofstream g("lgput.out");
f>>N>>P;
g<<putere(N,P);
return 0;
}