Pagini recente » Cod sursa (job #140113) | Cod sursa (job #3260860) | Cod sursa (job #3304889) | Cod sursa (job #1532952) | Cod sursa (job #3339362)
#include <iostream>
#include <fstream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
long long power(long long baz, long long exp){
if(exp==0)
return 1;
long long half=power(baz,exp/2);
if(exp%2)
return half*half*baz;
else
return half*half;
}
int main()
{
long long n,p;
fin >> n >> p;
long long nr=power(n,p);
fout << nr%1999999973;
return 0;
}