x = 0
for i in range(int(input())):
a = input()
x += int(a[:-1]) ** int(a[-1])
print(x)
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
19 ms |
3300 KB |
Output is correct |
2 |
Correct |
21 ms |
3308 KB |
Output is correct |
3 |
Correct |
20 ms |
3308 KB |
Output is correct |
4 |
Correct |
22 ms |
3308 KB |
Output is correct |
5 |
Correct |
20 ms |
3308 KB |
Output is correct |
6 |
Correct |
20 ms |
3308 KB |
Output is correct |
7 |
Correct |
31 ms |
3292 KB |
Output is correct |
8 |
Correct |
20 ms |
3308 KB |
Output is correct |
9 |
Correct |
19 ms |
3308 KB |
Output is correct |
10 |
Correct |
19 ms |
3304 KB |
Output is correct |