Submission #19398

#TimeUsernameProblemLanguageResultExecution timeMemory
19398QwazΑ (kriii4_P1)C++14
0 / 100
0 ms1084 KiB
#include <cstdio> typedef long long ll; const int MOD = 1000000007; ll a, x; int main() { ll res = 1; scanf("%lld%lld", &a, &x); a = a % MOD; x = x % MOD; while (x) { if (x & 1) res = res * a % MOD; a = a * a % MOD; x >>= 1; } printf("%lld\n", res); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...