# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
19305 |
2016-02-24T09:16:00 Z |
imsifile |
Α (kriii4_P1) |
C++ |
|
0 ms |
1084 KB |
#include<stdio.h>
#define mod 1000000007
typedef long long lld;
lld a, b;
lld exp(lld a, lld b){
if(b==0)return 1;
lld k=exp(a, b/2);
k=(k*k)%mod;
if(b%2)k=(k*a)%mod;
return k;
}
int main(){
scanf("%lld%lld", &a, &b);
printf("%lld", exp(a,b));
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |