212872026-01-12 17:50:49algoproBájital (80 pont)pypy3Time limit exceeded 0/80303ms64000 KiB
# UUID: 0c2dc87d-d7cc-4c46-9393-98155ba1e48d

N,X = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]

maxi = sum(A)//(X+1)
harmas=0
szamlalo=0

for i in range(len(A)):
    harmas=harmas+A[i]//X
    szamlalo=szamlalo+A[i]%X

while harmas <= szamlalo:
    if harmas <= szamlalo:
        print(harmas)
    
    elif harmas > szamlalo:
        harmas=harmas-1
        szamlalo=szamlalo+3
SubtaskSumTestVerdictTimeMemory
base0/80
1Time limit exceeded0/0284ms44476 KiB
2Wrong answer0/039ms19712 KiB
3Wrong answer0/243ms19408 KiB
4Wrong answer0/243ms19568 KiB
5Wrong answer0/246ms19816 KiB
6Wrong answer0/246ms21080 KiB
7Wrong answer0/450ms21652 KiB
8Wrong answer0/457ms21584 KiB
9Wrong answer0/275ms31156 KiB
10Wrong answer0/268ms31260 KiB
11Wrong answer0/275ms31212 KiB
12Wrong answer0/267ms31212 KiB
13Wrong answer0/276ms31212 KiB
14Wrong answer0/276ms31292 KiB
15Wrong answer0/265ms31116 KiB
16Wrong answer0/267ms31256 KiB
17Wrong answer0/276ms31212 KiB
18Wrong answer0/275ms31100 KiB
19Wrong answer0/267ms31088 KiB
20Wrong answer0/265ms31300 KiB
21Wrong answer0/276ms31208 KiB
22Wrong answer0/265ms31212 KiB
23Wrong answer0/443ms19348 KiB
24Time limit exceeded0/4303ms48592 KiB
25Wrong answer0/443ms19436 KiB
26Time limit exceeded0/4303ms48132 KiB
27Wrong answer0/476ms31080 KiB
28Wrong answer0/467ms31104 KiB
29Wrong answer0/476ms31208 KiB
30Time limit exceeded0/2296ms64000 KiB
31Time limit exceeded0/2261ms57704 KiB
32Wrong answer0/265ms31212 KiB
33Wrong answer0/275ms31228 KiB