Pagini recente » Cod sursa (job #2007713) | Cod sursa (job #2226438) | Cod sursa (job #1870836) | Cod sursa (job #954630) | Cod sursa (job #2700748)
#include <fstream>
using namespace std;
typedef long long ll;
const int MOD = 1999999973;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
int main()
{
ios_base::sync_with_stdio(false);
fin.tie(NULL);
ll ans = 1;
int n,m,i;
fin >> n >> m;
for(i = 1; i <= m; i <<= 1)
{
if(m & i)
ans = (1LL * ans * n) % MOD;
n = (1LL * n * n) % MOD;
}
fout << ans;
return 0;
}