90552024-02-13 11:36:21DohajovDanielUtazásszervezés (75 pont)python3Wrong answer 11/7535ms14868 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/017ms11064 KiB
2Wrong answer0/035ms13684 KiB
3Accepted3/317ms11560 KiB
4Wrong answer0/417ms11604 KiB
5Accepted4/417ms11936 KiB
6Accepted4/417ms12064 KiB
7Wrong answer0/417ms12104 KiB
8Wrong answer0/417ms12444 KiB
9Wrong answer0/518ms12340 KiB
10Wrong answer0/519ms12668 KiB
11Wrong answer0/624ms13052 KiB
12Wrong answer0/630ms14628 KiB
13Wrong answer0/630ms14432 KiB
14Wrong answer0/635ms14868 KiB
15Wrong answer0/634ms14844 KiB
16Wrong answer0/634ms14752 KiB
17Wrong answer0/635ms14660 KiB