# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
19545 |
2016-02-24T17:29:37 Z |
joojis |
Α (kriii4_P1) |
C++ |
|
0 ms |
1084 KB |
#include <cstdio>
int main ()
{
long long unsigned a, x;
scanf("%llu %llu", &a, &x);
long long unsigned answer=1;
while (x>0) {
answer *= x%2 ? a : 1;
answer %= 1000000007;
x/=2;
a=a*a;
a %= 1000000007;
}
printf("%llu\n", answer % 1000000007);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |