22912023-01-09 19:58:48neszbalDecimáliapython3Wrong answer 0/100583ms20848 KiB
import math

N = int(input())

L = list(map(int, input().split()))[::-1]

osszeg = 0

for i, ertek in enumerate(L):
    if math.floor(ertek / 10**i) > 0:
        osszeg += math.floor(ertek / 10**i) *10**i *(10**(N-i-1))

print(osszeg)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted19ms11604 KiB
2Accepted17ms12084 KiB
3Accepted17ms12012 KiB
subtask20/25
4Accepted17ms12612 KiB
5Wrong answer17ms12844 KiB
6Wrong answer17ms12968 KiB
7Wrong answer17ms12804 KiB
8Wrong answer17ms13004 KiB
subtask30/26
9Wrong answer17ms13124 KiB
10Wrong answer16ms13252 KiB
11Wrong answer17ms13332 KiB
12Wrong answer17ms13636 KiB
13Wrong answer17ms13772 KiB
14Accepted16ms13772 KiB
15Wrong answer17ms13936 KiB
16Wrong answer17ms13976 KiB
subtask40/19
17Wrong answer18ms14716 KiB
18Wrong answer19ms14632 KiB
19Wrong answer18ms14336 KiB
20Wrong answer19ms14580 KiB
subtask50/30
21Time limit exceeded579ms20416 KiB
22Time limit exceeded540ms20688 KiB
23Time limit exceeded572ms20504 KiB
24Time limit exceeded579ms20680 KiB
25Time limit exceeded583ms20848 KiB
26Time limit exceeded578ms20732 KiB
27Time limit exceeded575ms15144 KiB
28Wrong answer17ms14780 KiB