Pagini recente » Cod sursa (job #2187203) | Cod sursa (job #1557283) | Cod sursa (job #1944282) | Cod sursa (job #2462698) | Cod sursa (job #3214838)
#include <fstream>
using namespace std;
using pii = pair<int,int>;
ifstream cin("lgput.in");
ofstream cout("lgput.out");
int a , b;
const int mod = 1999999973;
long long fastpow(int &a , int b)
{
if(!b) return 1LL;
if(b&1) return (a*fastpow(a,b-1))%mod;
long long p = fastpow(a,b/2);
return (p*p)%mod;
}
signed main()
{
cin >> a >> b;
cout << fastpow(a,b);
return 0;
}