# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
3545 | eldkqmfhf123 | Great Pow! (kriii1_G) | C++98 | 0 ms | 1852 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 <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
int main(void){
int a, k, val, res=1;
int i, j;
cin >>a >>k;
val = pow(a, a);
for(i=0; i<k; i++)
val = (int)pow(val, a) % (a+1);
cout <<val <<endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |