| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 339938 | ArKCa | Pot (COCI15_pot) | C++17 | 1 ms | 364 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
