Files
kattis/pot.py
2022-05-13 21:36:23 +02:00

10 lines
149 B
Python

n = int(input())
sum = 0
for _ in range(n):
x = int(input())
base = x // 10
exponent = x % 10
sum += pow(base, exponent)
print(sum)