111942024-07-16 11:51:10probaDecimáliapython3Runtime error 70/100344ms262148 KiB
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))
h = len(str(s))-1
print((s//10**h)*10**h)
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted18ms2920 KiB
2Accepted17ms2960 KiB
3Accepted17ms2916 KiB
subtask225/25
4Accepted17ms3048 KiB
5Accepted17ms2916 KiB
6Accepted17ms3192 KiB
7Accepted17ms2964 KiB
8Accepted17ms2936 KiB
subtask326/26
9Accepted18ms3088 KiB
10Accepted18ms2940 KiB
11Accepted17ms2916 KiB
12Accepted17ms2916 KiB
13Accepted17ms2916 KiB
14Accepted17ms3056 KiB
15Accepted17ms2972 KiB
16Accepted17ms2916 KiB
subtask419/19
17Accepted19ms3564 KiB
18Accepted19ms3496 KiB
19Accepted18ms3484 KiB
20Accepted19ms3300 KiB
subtask50/30
21Runtime error342ms262148 KiB
22Runtime error298ms262148 KiB
23Runtime error344ms262148 KiB
24Runtime error342ms262148 KiB
25Runtime error298ms262148 KiB
26Runtime error338ms262148 KiB
27Runtime error296ms262148 KiB
28Accepted17ms2916 KiB