scientific_comp_projects/CODE/[python]kattis/trivial/pot.py
2021-10-29 15:16:40 +02:00

11 lines
163 B
Python

n = int(input())
total = 0
for i in range(n):
j = input()
number = int(j[:-1])
power = int(j[-1])
total = total + number**power
print(total)