Submission #19242

#TimeUsernameProblemLanguageResultExecution timeMemory
19242kaTkaHrΑ (kriii4_P1)C++14
100 / 100
0 ms1084 KiB
#include <stdio.h> #include <algorithm> #include <map> using namespace std; typedef long long ll; const int MM = 1000000007; int main() { ll A, B, R = 1; scanf("%lld%lld", &A, &B); A %= MM; while(B){ if( B&1 ) R = R * A % MM; B /= 2; A = A * A % MM; } printf("%lld\n", R); }
#Verdict Execution timeMemoryGrader output
Fetching results...