159042025-03-11 13:26:35MangoBejgli (80 pont)python3Wrong answer 0/80601ms10936 KiB
h = int(input())
sz = input()
sz = sz.split()
v = 0
vv = 0
m = []
mm = []
mmm = 0
ms = 0
a = 0
b = 0
ab = 1
for i in range(h):
    sz[i] = int(sz[i])
    if i == 0:
        m.append(sz[i])
        mm.append(sz[i])
        mmm += 1
    else:
        for f in range(mmm):
            if m[f] == (sz[i]):
                mm[f] += (sz[i])
                break
            else:
                if a - 1 == mmm:
                    m.append(sz[i])
                    mm.append(sz[i])
                    a = 0
                    mmm += 1
                else:
                    a += 1

for j in range(mmm):
    if mm[j] / m[j] > ms:
        ms = m[j]


print(m,mm)
print(vv)
print(ms)
SubtaskSumTestVerdictTimeMemory
base0/80
1Wrong answer0/016ms3128 KiB
2Wrong answer0/016ms3116 KiB
3Wrong answer0/416ms3172 KiB
4Wrong answer0/416ms3060 KiB
5Wrong answer0/417ms3156 KiB
6Wrong answer0/417ms3124 KiB
7Wrong answer0/417ms3124 KiB
8Wrong answer0/417ms2992 KiB
9Wrong answer0/432ms3136 KiB
10Wrong answer0/429ms3124 KiB
11Wrong answer0/4175ms3364 KiB
12Wrong answer0/420ms3128 KiB
13Time limit exceeded0/4600ms3672 KiB
14Time limit exceeded0/4600ms3892 KiB
15Time limit exceeded0/4600ms4200 KiB
16Wrong answer0/4111ms3808 KiB
17Time limit exceeded0/4587ms6084 KiB
18Wrong answer0/4108ms4388 KiB
19Time limit exceeded0/4601ms10936 KiB
20Time limit exceeded0/4601ms10404 KiB
21Time limit exceeded0/4575ms10608 KiB
22Time limit exceeded0/4587ms8380 KiB