Pagini recente » Cod sursa (job #2582697) | Borderou de evaluare (job #1385450) | Cod sursa (job #569940) | Cod sursa (job #1042826) | Cod sursa (job #2629326)
#include <iostream>
#include <fstream>
#define MOD 1999999973
using namespace std;
ifstream in("lgput.in");
ofstream out("lgput.out");
long long a, b;
long long poww(int a, int b)
{
if(b==0) return 1;
if(b==1) return a;
long long x=poww(a, b/2)%MOD;
if(b%2) return x*x%MOD*a%MOD;
return x*x%MOD;
}
int main()
{
in>>a>>b;
out<<poww(a, b);
return 0;
}