# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
4337 | zorrapower | Great Pow! (kriii1_G) | C++98 | 0 ms | 1088 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>
long long pow(long long a, long long n);
int main(void){
long long a, k;
scanf("%lld %lld", &a, &k);
printf("%lld", pow(a, a)%a+1);
return 0;
}
long long pow(long long a, long long n){
long long result=1;
for(long long i=0; i<n; i++)
result*=a;
return result;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |