1 solutions

  • 0
    @ 2024-8-18 18:12:57

    m=int(input())

    b=0 dfg=0 n=list(map(int,input().split(" "))) a=sum(n) lst=[] for i in range(m): a=a-n[i] b=b+n[i] dfg=abs(a-b) lst.append(dfg) n = len(lst) print(min(lst))


    • 1

    Information

    ID
    1273
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    18
    Accepted
    9
    Uploaded By