90562024-02-13 11:38:21DohajovDanielUtazásszervezés (75 pont)python3Wrong answer 11/7535ms15860 KiB
idb,szh,uh,csdb = [int(i) for i in input().split()]
unL = [int(i) for i in input().split()]
#print(idb, szh, uh, csdb, unL)
iL = idb * [1]
kdb= 0
for i in range(csdb):
    for j in range(idb):
        if unL[i] > iL[j] and iL[j]+uh-1!=szh :
            iL[j] = iL[j]+uh-1
            kdb+=1
            #print(unL[i], iL)
            break
print(kdb)
"""
2 10 4 6
1 2 2 5 6 7
"""
SubtaskSumTestVerdictTimeMemory
base11/75
1Accepted0/017ms11008 KiB
2Wrong answer0/035ms13764 KiB
3Accepted3/317ms11584 KiB
4Wrong answer0/417ms11832 KiB
5Accepted4/417ms12020 KiB
6Accepted4/417ms12396 KiB
7Wrong answer0/418ms12780 KiB
8Wrong answer0/418ms12772 KiB
9Wrong answer0/519ms13608 KiB
10Wrong answer0/520ms13512 KiB
11Wrong answer0/624ms14184 KiB
12Wrong answer0/629ms14832 KiB
13Wrong answer0/630ms15344 KiB
14Wrong answer0/635ms15860 KiB
15Wrong answer0/634ms15428 KiB
16Wrong answer0/634ms15624 KiB
17Wrong answer0/634ms15484 KiB