22922023-01-09 20:02:57neszbalDecimáliapython3Wrong answer 0/100277ms40340 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) *10**i *(10**(N-i-1)) > osszeg:
        osszeg = math.floor(ertek / 10**i) *10**i *(10**(N-i-1))
        break
    if math.floor(ertek / 10**i) > 0:
        osszeg += math.floor(ertek / 10**i) *10**i *(10**(N-i-1))

print(osszeg)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted18ms11248 KiB
2Wrong answer17ms11500 KiB
3Accepted17ms11716 KiB
subtask20/25
4Accepted17ms12040 KiB
5Wrong answer17ms11872 KiB
6Wrong answer17ms12352 KiB
7Wrong answer17ms12552 KiB
8Wrong answer17ms12720 KiB
subtask30/26
9Wrong answer17ms12664 KiB
10Wrong answer17ms12772 KiB
11Wrong answer17ms13224 KiB
12Wrong answer17ms13312 KiB
13Wrong answer17ms13264 KiB
14Accepted16ms12972 KiB
15Wrong answer17ms13152 KiB
16Wrong answer17ms13152 KiB
subtask40/19
17Wrong answer17ms13320 KiB
18Wrong answer17ms13560 KiB
19Wrong answer17ms13280 KiB
20Wrong answer17ms13780 KiB
subtask50/30
21Wrong answer273ms40212 KiB
22Wrong answer273ms40340 KiB
23Wrong answer275ms40332 KiB
24Wrong answer277ms40240 KiB
25Wrong answer275ms40340 KiB
26Wrong answer270ms40332 KiB
27Wrong answer165ms29312 KiB
28Wrong answer17ms13808 KiB