제출 #19533

#제출 시각아이디문제언어결과실행 시간메모리
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...