import math
N = int(input())
L = list(map(int, input().split()))[::-1]
osszeg = 0
for i, ertek in enumerate(L):
if math.floor(ertek / 10**i) > 0:
osszeg += math.floor(ertek / 10**i) *10**i *(10**(N-i-1))
print(osszeg)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 19ms | 11604 KiB | ||||
2 | Accepted | 17ms | 12084 KiB | ||||
3 | Accepted | 17ms | 12012 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Accepted | 17ms | 12612 KiB | ||||
5 | Wrong answer | 17ms | 12844 KiB | ||||
6 | Wrong answer | 17ms | 12968 KiB | ||||
7 | Wrong answer | 17ms | 12804 KiB | ||||
8 | Wrong answer | 17ms | 13004 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 17ms | 13124 KiB | ||||
10 | Wrong answer | 16ms | 13252 KiB | ||||
11 | Wrong answer | 17ms | 13332 KiB | ||||
12 | Wrong answer | 17ms | 13636 KiB | ||||
13 | Wrong answer | 17ms | 13772 KiB | ||||
14 | Accepted | 16ms | 13772 KiB | ||||
15 | Wrong answer | 17ms | 13936 KiB | ||||
16 | Wrong answer | 17ms | 13976 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 18ms | 14716 KiB | ||||
18 | Wrong answer | 19ms | 14632 KiB | ||||
19 | Wrong answer | 18ms | 14336 KiB | ||||
20 | Wrong answer | 19ms | 14580 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Time limit exceeded | 579ms | 20416 KiB | ||||
22 | Time limit exceeded | 540ms | 20688 KiB | ||||
23 | Time limit exceeded | 572ms | 20504 KiB | ||||
24 | Time limit exceeded | 579ms | 20680 KiB | ||||
25 | Time limit exceeded | 583ms | 20848 KiB | ||||
26 | Time limit exceeded | 578ms | 20732 KiB | ||||
27 | Time limit exceeded | 575ms | 15144 KiB | ||||
28 | Wrong answer | 17ms | 14780 KiB |