Submission #19302

#TimeUsernameProblemLanguageResultExecution timeMemory
19302sys7961Α (kriii4_P1)C++14
100 / 100
0 ms1084 KiB
#include<stdio.h> const long long M = 1000000007; long long pow(long long n, long long b) { if (b == 0) { return 1; } long long temp = pow(n, b / 2); if (b % 2 == 1) { return temp*temp%M*n%M; } return temp*temp%M; } int main() { long long a, x; scanf("%lld%lld", &a, &x); printf("%lld", pow(a%M, x)); }
#Verdict Execution timeMemoryGrader output
Fetching results...