44582023-03-28 11:23:38PallanekPéterUtazásszervezés (75 pont)python3Wrong answer 0/7521ms15796 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/018ms11144 KiB
2Wrong answer0/021ms13948 KiB
3Runtime error0/317ms11620 KiB
4Runtime error0/417ms11764 KiB
5Runtime error0/417ms11964 KiB
6Wrong answer0/417ms12188 KiB
7Wrong answer0/417ms12328 KiB
8Wrong answer0/417ms12720 KiB
9Wrong answer0/517ms12852 KiB
10Wrong answer0/518ms13224 KiB
11Wrong answer0/618ms13908 KiB
12Wrong answer0/619ms15048 KiB
13Wrong answer0/620ms15052 KiB
14Wrong answer0/621ms15764 KiB
15Wrong answer0/620ms15712 KiB
16Wrong answer0/620ms15796 KiB
17Wrong answer0/620ms15784 KiB