| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 19304 | tncks0121 | Α (kriii4_P1) | C++14 | 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 <stdio.h>
int main() {
  long long a, b; scanf("%lld%lld", &a, &b);
  
  long long mod = (long long)1e9 + 7;
  a %= mod;
  
  long long cur = 1;
  while(b > 0) {
    if(b & 1) cur = (cur * a) % mod;
    a = (a * a) % mod;
    b >>= 1;
  }
  
  printf("%lld\n", cur);
  return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
