Pagini recente » Cod sursa (job #604687) | Cod sursa (job #440432) | Cod sursa (job #1051974) | Cod sursa (job #3151222) | Cod sursa (job #3265623)
#include <bits/stdc++.h>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
const long long mod = 1999999973;
long long a, b;
static inline long long Put(long long a, long long n) {
long long p = 1;
while(n) {
if(n & 1) p = (p * a) % mod;
a = (a * a) % mod;
n >>= 1;
}
return p;
}
int main() {
//ios_base::sync_with_stdio(false);
fin.tie(nullptr);
fout.tie(nullptr);
fin >> a >> b;
fout << Put(a, b);
return 0;
}