38042023-03-03 08:52:13cstmKövek (100 pont)python3Wrong answer 86/100119ms29928 KiB
b=0
c=0
e=0
a=int(input())
list=input().split()
list2=[]
for i in range(0,len(list)):
    b=b+int(list[i])
b=b/a
for i in range(0,a):
    c=c+int(list[i])
    if (c%b==0):
        d=c/b
        list2.append(d-1)
        c=0
for i in range(0,len(list2)):
    e=e+int(list2[i])
print(e)
SubtaskSumTestVerdictTimeMemory
base86/100
1Accepted0/017ms11200 KiB
2Accepted0/0116ms28296 KiB
3Accepted5/517ms11740 KiB
4Accepted5/517ms11664 KiB
5Accepted5/517ms11932 KiB
6Accepted5/517ms12372 KiB
7Accepted5/517ms12384 KiB
8Accepted5/517ms12692 KiB
9Wrong answer0/717ms12672 KiB
10Wrong answer0/717ms12916 KiB
11Accepted8/817ms13204 KiB
12Accepted8/817ms13364 KiB
13Accepted8/819ms13804 KiB
14Accepted8/828ms15112 KiB
15Accepted8/852ms18924 KiB
16Accepted8/8107ms27480 KiB
17Accepted8/8119ms29928 KiB