Pagini recente » Statistici bvvywlvw lmjlfgo (pnhdjtkzafa) | Cod sursa (job #2047677) | Cod sursa (job #1657178) | Cod sursa (job #2466537) | Cod sursa (job #2278642)
#include <iostream>
#include <fstream>
#define LL long long
using namespace std;
LL put(LL a, LL b ,LL m)
{
LL sol=1;
LL put=a;
for(LL i=1;i<=b;i=i << 1)
{
if(i & b )sol=sol*put%m;
put=put*put%m;
}
return sol;
}
int main()
{
ifstream f("lgput.in");
ofstream g("lgput.out");
LL a,b;
f>>a>>b;
g<<put(a,b,1999999973);
f.close();
g.close();
}