111932024-07-16 11:48:43probaDecimáliapython3Runtime error 70/100342ms262148 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))

print((s//10**(len(str(s))-1))*10**((len(str(s))-1)))    
    
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms2916 KiB
2Accepted17ms2916 KiB
3Accepted17ms2960 KiB
subtask225/25
4Accepted17ms2920 KiB
5Accepted18ms3004 KiB
6Accepted17ms2916 KiB
7Accepted18ms3048 KiB
8Accepted17ms2844 KiB
subtask326/26
9Accepted18ms2936 KiB
10Accepted17ms2916 KiB
11Accepted17ms2920 KiB
12Accepted17ms2952 KiB
13Accepted17ms2916 KiB
14Accepted17ms2916 KiB
15Accepted17ms2916 KiB
16Accepted17ms2788 KiB
subtask419/19
17Accepted19ms3468 KiB
18Accepted19ms3484 KiB
19Accepted19ms3244 KiB
20Accepted18ms3704 KiB
subtask50/30
21Runtime error300ms262148 KiB
22Runtime error342ms262148 KiB
23Runtime error342ms262148 KiB
24Runtime error340ms262148 KiB
25Runtime error303ms262148 KiB
26Runtime error340ms262148 KiB
27Runtime error338ms262148 KiB
28Accepted17ms2916 KiB