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
print(sor[h]*10**h)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2968 KiB | ||||
2 | Accepted | 17ms | 2984 KiB | ||||
3 | Accepted | 17ms | 2916 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Accepted | 17ms | 2984 KiB | ||||
5 | Wrong answer | 17ms | 2916 KiB | ||||
6 | Wrong answer | 17ms | 2916 KiB | ||||
7 | Wrong answer | 17ms | 2868 KiB | ||||
8 | Wrong answer | 17ms | 2936 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 17ms | 3020 KiB | ||||
10 | Wrong answer | 17ms | 2888 KiB | ||||
11 | Wrong answer | 18ms | 3044 KiB | ||||
12 | Wrong answer | 17ms | 3048 KiB | ||||
13 | Wrong answer | 17ms | 2964 KiB | ||||
14 | Accepted | 18ms | 3004 KiB | ||||
15 | Wrong answer | 17ms | 3084 KiB | ||||
16 | Wrong answer | 17ms | 2916 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 18ms | 3044 KiB | ||||
18 | Wrong answer | 18ms | 3316 KiB | ||||
19 | Wrong answer | 18ms | 3044 KiB | ||||
20 | Wrong answer | 17ms | 3220 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Runtime error | 104ms | 16552 KiB | ||||
22 | Runtime error | 105ms | 16576 KiB | ||||
23 | Runtime error | 107ms | 16684 KiB | ||||
24 | Runtime error | 104ms | 16552 KiB | ||||
25 | Runtime error | 101ms | 16552 KiB | ||||
26 | Runtime error | 105ms | 16608 KiB | ||||
27 | Runtime error | 81ms | 11080 KiB | ||||
28 | Wrong answer | 17ms | 3044 KiB |