45252023-03-29 12:28:03DohajovDanielUtazásszervezés (75 pont)python3Wrong answer 15/7529ms16000 KiB
vdb,nap,hossz,idb,=[int(i) for i in input().split()]
igL=[int(i) for i in input().split()]
vL=vdb*[0]
lehet=0
for i in range(idb):
    if (igL[i]-hossz in vL):
        lehet+=1
        vL[vL.index(igL[i]-hossz)]=igL[i]
    if (igL[i]-hossz in vL)==False and (0 in vL)==True:
        lehet+=1
        vL[vL.index(0)]=igL[i]
print(lehet)
        
SubtaskSumTestVerdictTimeMemory
base15/75
1Accepted0/017ms11144 KiB
2Wrong answer0/028ms13736 KiB
3Accepted3/317ms11660 KiB
4Accepted4/417ms11988 KiB
5Accepted4/417ms12012 KiB
6Wrong answer0/417ms12252 KiB
7Accepted4/417ms12288 KiB
8Wrong answer0/418ms12680 KiB
9Wrong answer0/517ms12996 KiB
10Wrong answer0/519ms13400 KiB
11Wrong answer0/621ms14044 KiB
12Wrong answer0/626ms14864 KiB
13Wrong answer0/626ms14808 KiB
14Wrong answer0/628ms15580 KiB
15Wrong answer0/629ms15748 KiB
16Wrong answer0/628ms15880 KiB
17Wrong answer0/628ms16000 KiB