제출 #24167

#제출 시각아이디문제언어결과실행 시간메모리
24167model_codePot (COCI15_pot)Cpython 3
50 / 50
28 ms3 KiB
N = int(input())

ukupno = 0

for i in range(N):
    P = int(input())

    pot = P % 10
    baza = P // 10

    potencija = 1
    for i in range(pot):
        potencija *= baza

    ukupno += potencija

print(ukupno)
#Verdict Execution timeMemoryGrader output
Fetching results...