Pagini recente » Cod sursa (job #1818470) | Cod sursa (job #1890908) | Cod sursa (job #1596459) | Cod sursa (job #1350691) | Cod sursa (job #2336143)
#include <iostream>
#include <fstream>
using namespace std;
ifstream fi("lgput.in");
ofstream fo("lgput.out");
const int mo=1999999973;
long int ridicare(long int a, long int b)
{
long int r=1;
while(b)
{
if(b%2)
r =( 1LL * r * a) % mo;
a= (1LL * a * a) %mo;
b=b / 2;
}
return r%mo;
}
int main()
{
long int n,p;
fi>>n>>p;
fo<<ridicare(n,p);
return 0;
}