# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
24167 | model_code | Pot (COCI15_pot) | Cpython 3 | 28 ms | 3 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.
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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |