| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 339938 | ArKCa | Pot (COCI15_pot) | C++17 | 1 ms | 364 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<bits/stdc++.h>
#define N   200005
#define ll  long long 
#define int ll
#define N   200005
using namespace std;
int n,sum,a;
int fp(int x,int y){
	if(y==1)return x;
	if(y==0)return 1;
	int a=fp(x,y/2);
	if(y%2)return a*a*x;
	return a*a;
}
int32_t main(){
	// freopen("a.gir","r",stdin);
	// freopen("a.cik","w",stdout);
	scanf("%lld",&n);
	while(n--){
		scanf("%lld",&a);
		sum+=fp((int)a/10,(int)a%10);
		// printf("%lld %lld %lld\n", (int)a/10,(int)a%10 ,sum);
	}
	printf("%lld\n", sum);
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
