# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19534 | jihoon | Α (kriii4_P1) | C++98 | 0 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<cstdio>
#define je 1000000007
long long a,x,ans,gop;
int main(){
scanf("%lld\n%lld",&a,&x);
a%=je;
gop=a; ans=1;
while(x){
if(x&1){ans*=gop;ans%=je;}
x >>= 1;gop*=gop;gop%=je;
}
printf("%lld",ans);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |