N = input()
sor = input()
th = 1
j = []
h = []
def osszeg(a, b):
return a*b
for i in sor.split(' '):
j += [int(i)]
h += [th]
th *= 10
s = sum(map(osszeg,j, h))
print((s//10**(len(str(s))-1))*10**((len(str(s))-1)))
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2916 KiB | ||||
2 | Accepted | 17ms | 2916 KiB | ||||
3 | Accepted | 17ms | 2960 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 17ms | 2920 KiB | ||||
5 | Accepted | 18ms | 3004 KiB | ||||
6 | Accepted | 17ms | 2916 KiB | ||||
7 | Accepted | 18ms | 3048 KiB | ||||
8 | Accepted | 17ms | 2844 KiB | ||||
subtask3 | 26/26 | ||||||
9 | Accepted | 18ms | 2936 KiB | ||||
10 | Accepted | 17ms | 2916 KiB | ||||
11 | Accepted | 17ms | 2920 KiB | ||||
12 | Accepted | 17ms | 2952 KiB | ||||
13 | Accepted | 17ms | 2916 KiB | ||||
14 | Accepted | 17ms | 2916 KiB | ||||
15 | Accepted | 17ms | 2916 KiB | ||||
16 | Accepted | 17ms | 2788 KiB | ||||
subtask4 | 19/19 | ||||||
17 | Accepted | 19ms | 3468 KiB | ||||
18 | Accepted | 19ms | 3484 KiB | ||||
19 | Accepted | 19ms | 3244 KiB | ||||
20 | Accepted | 18ms | 3704 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Runtime error | 300ms | 262148 KiB | ||||
22 | Runtime error | 342ms | 262148 KiB | ||||
23 | Runtime error | 342ms | 262148 KiB | ||||
24 | Runtime error | 340ms | 262148 KiB | ||||
25 | Runtime error | 303ms | 262148 KiB | ||||
26 | Runtime error | 340ms | 262148 KiB | ||||
27 | Runtime error | 338ms | 262148 KiB | ||||
28 | Accepted | 17ms | 2916 KiB |