44572023-03-28 11:22:57PallanekPéterUtazásszervezés (75 pont)python3Wrong answer 0/7521ms15744 KiB
N,K,M,C=[int(i) for i in input().split()]
igenyek=[int(i) for i in input().split()]
szezon=[0]*K; db=0; vissza=[0]*N
for i in range(M):
    for j in range(N):
        if igenyek[i]>vissza[j]:
            db+=1;
            vissza[j]=igenyek[i]+M-1
print(db)
SubtaskSumTestVerdictTimeMemory
base0/75
1Accepted0/017ms11036 KiB
2Wrong answer0/021ms13892 KiB
3Runtime error0/318ms11508 KiB
4Runtime error0/417ms11620 KiB
5Runtime error0/417ms11684 KiB
6Wrong answer0/417ms12080 KiB
7Wrong answer0/417ms12412 KiB
8Wrong answer0/417ms12496 KiB
9Wrong answer0/517ms12856 KiB
10Wrong answer0/517ms13104 KiB
11Wrong answer0/619ms13412 KiB
12Wrong answer0/620ms14776 KiB
13Wrong answer0/621ms14896 KiB
14Wrong answer0/620ms15276 KiB
15Wrong answer0/621ms15472 KiB
16Wrong answer0/621ms15744 KiB
17Wrong answer0/620ms15560 KiB