Pagini recente » Cod sursa (job #2775830) | Cod sursa (job #29508) | Cod sursa (job #1085959) | Cod sursa (job #1087922) | Cod sursa (job #2175708)
#include<iostream>
#include<fstream>
#define mod 1999999973
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
long long int n,m;
long long int log_exp(long long int x,long long int y)
{
if(y == 0) return 1;
long long int temp = log_exp(x,y/2);
if(y%2 == 0) return (temp*temp)%mod;
else return (x*((temp*temp)%mod))%mod;
}
int main()
{
fin>>n>>m;
fout<<log_exp(n,m)%mod;
}