251842026-02-18 12:01:57VizsimiUtazásszervezés (75 pont)python3Wrong answer 0/75300ms14724 KiB
a = input().split()
leaders = int(a[0])
season = int(a[1])
days = int(a[2])
all = int(a[3])
books = input().split()

for i in range(all):
    books[i] = int(books[i])

trips = [0]*(season+1)
reservations = 0

for i in books:
    print(trips)
    if trips[i] < leaders:
        reservations += 1
        for j in range(i, i+days):
            trips[j] += 1
print(reservations)
SubtaskSumTestVerdictTimeMemory
base0/75
1Wrong answer0/016ms3324 KiB
2Time limit exceeded0/0280ms13668 KiB
3Wrong answer0/316ms3104 KiB
4Wrong answer0/416ms3120 KiB
5Wrong answer0/416ms3124 KiB
6Wrong answer0/416ms3052 KiB
7Wrong answer0/416ms3108 KiB
8Time limit exceeded0/4203ms10012 KiB
9Time limit exceeded0/5284ms13360 KiB
10Time limit exceeded0/5284ms13364 KiB
11Time limit exceeded0/6275ms13364 KiB
12Time limit exceeded0/6300ms14644 KiB
13Time limit exceeded0/6277ms13620 KiB
14Time limit exceeded0/6277ms13876 KiB
15Time limit exceeded0/6279ms13620 KiB
16Time limit exceeded0/6300ms14724 KiB
17Time limit exceeded0/6275ms13108 KiB