| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 407371 | rainboy | Pot (COCI15_pot) | C11 | 1 ms | 280 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>
int power(int a, int k) {
	return k == 0 ? 1 : power(a, k - 1) * a;
}
int main() {
	int n, ans;
	scanf("%d", &n);
	ans = 0;
	while (n--) {
		int a;
		scanf("%d", &a);
		ans += power(a / 10, a % 10);
	}
	printf("%d\n", ans);
	return 0;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
