semmi = input()
sor = [int(i) for i in input().split(' ')]
h = len(sor)-1
for i in range(h):
sor[i+1] += sor[i] // 10
if sor[h] > 10:
print((sor[h] // 10)*10**(h+1))
else:
print(sor[h]*10**h)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 2960 KiB | ||||
2 | Accepted | 17ms | 2960 KiB | ||||
3 | Accepted | 17ms | 2844 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Accepted | 17ms | 2960 KiB | ||||
5 | Wrong answer | 17ms | 3064 KiB | ||||
6 | Wrong answer | 17ms | 2988 KiB | ||||
7 | Wrong answer | 17ms | 2956 KiB | ||||
8 | Wrong answer | 17ms | 2948 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 17ms | 2916 KiB | ||||
10 | Wrong answer | 18ms | 3044 KiB | ||||
11 | Wrong answer | 18ms | 3044 KiB | ||||
12 | Wrong answer | 17ms | 3096 KiB | ||||
13 | Wrong answer | 17ms | 2988 KiB | ||||
14 | Accepted | 18ms | 3188 KiB | ||||
15 | Accepted | 17ms | 2960 KiB | ||||
16 | Accepted | 17ms | 2916 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 18ms | 3056 KiB | ||||
18 | Wrong answer | 18ms | 3108 KiB | ||||
19 | Wrong answer | 18ms | 3088 KiB | ||||
20 | Wrong answer | 18ms | 3088 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Runtime error | 103ms | 16596 KiB | ||||
22 | Runtime error | 108ms | 16664 KiB | ||||
23 | Runtime error | 108ms | 16688 KiB | ||||
24 | Runtime error | 108ms | 16612 KiB | ||||
25 | Runtime error | 108ms | 16552 KiB | ||||
26 | Runtime error | 103ms | 16552 KiB | ||||
27 | Runtime error | 79ms | 11012 KiB | ||||
28 | Wrong answer | 17ms | 2952 KiB |