Submission #19533

#TimeUsernameProblemLanguageResultExecution timeMemory
19533jihoonΑ (kriii4_P1)C++98
0 / 100
0 ms1084 KiB
#include<cstdio> #define je 1000000007 long long a,x,ans,gop; int main(){ scanf("%lld\n%lld",&a,&x); gop=a; ans=1; while(x){ if(x&1){ans*=gop;ans%=je;} x >>= 1;gop*=gop;gop%=je; } printf("%lld",ans); }
#Verdict Execution timeMemoryGrader output
Fetching results...