111962024-07-16 11:57:26probaDecimáliapython3Runtime error 70/100345ms262148 KiB
N = input()
sor = input()

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

def osszeg(a, b):
    return a*b

for i in sor.strip().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
5Accepted17ms3044 KiB
6Accepted17ms3048 KiB
7Accepted17ms3064 KiB
8Accepted17ms2916 KiB
subtask326/26
9Accepted17ms2920 KiB
10Accepted17ms2916 KiB
11Accepted18ms3044 KiB
12Accepted18ms2972 KiB
13Accepted18ms2936 KiB
14Accepted17ms3064 KiB
15Accepted17ms3064 KiB
16Accepted17ms2916 KiB
subtask419/19
17Accepted19ms3380 KiB
18Accepted19ms3300 KiB
19Accepted18ms3428 KiB
20Accepted19ms3436 KiB
subtask50/30
21Runtime error345ms262148 KiB
22Runtime error345ms262148 KiB
23Runtime error298ms262148 KiB
24Runtime error345ms262148 KiB
25Runtime error326ms262148 KiB
26Runtime error340ms262148 KiB
27Runtime error340ms262148 KiB
28Accepted17ms2916 KiB