Submission #19533

# Submission time Handle Problem Language Result Execution time Memory
19533 2016-02-24T16:21:31 Z jihoon Α (kriii4_P1) C++
0 / 100
0 ms 1084 KB
#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 time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -