Pagini recente » Cod sursa (job #2447306) | Cod sursa (job #416208) | Diferente pentru problema/2numere intre reviziile 2 si 1 | Cod sursa (job #1335924) | Cod sursa (job #2946981)
#include <fstream>
using namespace std;
ifstream cin("lgput.in");
ofstream cout("lgput.in");
const int MOD = 1999999973;
int a;
int fastpow( int b ){
if(b==0) return 1;
if(b%2) return (a*fastpow(b-1)) % MOD;
int val = fastpow(b/2)%MOD;
return val*val%MOD;
}
int main()
{
int b;
cin >> a >> b;
cout << fastpow(b);
return 0;
}