Pagini recente » Cod sursa (job #683435) | Cod sursa (job #1706191) | Istoria paginii runda/bruschete | Istoria paginii runda/please_d0_not_enter/clasament | Cod sursa (job #2159637)
#include<iostream>
#include<fstream>
#define ull unsigned long long
using namespace std;
ifstream f("lgput.in");
ofstream g("lgput.out");
ull a,b;
const ull MOD = 1999999973;
ull powr(ull x,ull y)
{
ull p=1;
while(y)
{
while(y%2==0)
{
y/=2;
x*=x;
}
p*=x;
p=p%MOD;
y--;
}
return p;
}
int main()
{
f>>a>>b;
g<<powr(a,b);
return 0;
}