111992024-07-16 12:48:2042Decimáliapython3Wrong answer 19/10093ms15876 KiB
from sys import stdin
input = stdin.readline

def f():
    N = int(input())
    A = list(map(int,input().split()))
    for i in range(N-1):
        A[i+1]+=A[i]//10
    while A[-1]>=10:
        A.append(A[-1]//10)
    print(A[-1]*10**(len(A)-1))

f()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms2916 KiB
2Accepted17ms2916 KiB
3Accepted17ms2976 KiB
subtask20/25
4Accepted17ms3044 KiB
5Wrong answer17ms3012 KiB
6Wrong answer17ms2916 KiB
7Wrong answer17ms2980 KiB
8Wrong answer17ms3064 KiB
subtask30/26
9Wrong answer17ms2916 KiB
10Wrong answer17ms2916 KiB
11Wrong answer18ms2916 KiB
12Wrong answer17ms2872 KiB
13Wrong answer17ms2948 KiB
14Accepted17ms2960 KiB
15Accepted17ms2916 KiB
16Accepted17ms3064 KiB
subtask419/19
17Accepted18ms3172 KiB
18Accepted18ms3044 KiB
19Accepted18ms3176 KiB
20Accepted17ms3192 KiB
subtask50/30
21Runtime error89ms15808 KiB
22Runtime error89ms15876 KiB
23Runtime error93ms15796 KiB
24Runtime error93ms15788 KiB
25Runtime error92ms15788 KiB
26Runtime error92ms15856 KiB
27Runtime error67ms11012 KiB
28Accepted17ms2916 KiB