251822026-02-18 11:57:22VizsimiUtazásszervezés (75 pont)python3Wrong answer 0/75300ms14644 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 range(1, all+1):
    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/016ms3136 KiB
2Time limit exceeded0/0277ms13880 KiB
3Wrong answer0/316ms3116 KiB
4Wrong answer0/416ms3120 KiB
5Wrong answer0/417ms3124 KiB
6Wrong answer0/417ms3352 KiB
7Wrong answer0/416ms3128 KiB
8Time limit exceeded0/4203ms10184 KiB
9Time limit exceeded0/5300ms13876 KiB
10Time limit exceeded0/5298ms13884 KiB
11Time limit exceeded0/6287ms13548 KiB
12Time limit exceeded0/6300ms14644 KiB
13Time limit exceeded0/6286ms14132 KiB
14Time limit exceeded0/6287ms14132 KiB
15Time limit exceeded0/6291ms14388 KiB
16Time limit exceeded0/6300ms14644 KiB
17Time limit exceeded0/6280ms13876 KiB