111952024-07-16 11:55:26probaDecimáliapython3Runtime error 70/100344ms262148 KiB
N = input()
sor = input()

th, j, h = 1, [], []

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))
h = len(str(s))-1

print((s//10**h)*10**h)
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted18ms2916 KiB
2Accepted17ms2916 KiB
3Accepted17ms2960 KiB
subtask225/25
4Accepted17ms2916 KiB
5Accepted18ms3056 KiB
6Accepted17ms3064 KiB
7Accepted17ms2916 KiB
8Accepted17ms2980 KiB
subtask326/26
9Accepted18ms2960 KiB
10Accepted18ms2992 KiB
11Accepted17ms3044 KiB
12Accepted17ms3044 KiB
13Accepted17ms3044 KiB
14Accepted17ms2916 KiB
15Accepted17ms3064 KiB
16Accepted17ms3064 KiB
subtask419/19
17Accepted19ms3384 KiB
18Accepted18ms3300 KiB
19Accepted18ms3436 KiB
20Accepted19ms3428 KiB
subtask50/30
21Runtime error300ms262148 KiB
22Runtime error342ms262148 KiB
23Runtime error344ms262148 KiB
24Runtime error301ms262148 KiB
25Runtime error296ms262148 KiB
26Runtime error296ms262148 KiB
27Runtime error337ms262148 KiB
28Accepted17ms3064 KiB