2754 | 2023-01-21 01:00:20 | renn | Karácsonyi égők | python3 | Time limit exceeded 0/100 | 1.588s | 57592 KiB |
sor = input().split()
N = int(sor[0])
C = int(sor[1])
sor = input().split()
egok = []
for E in sor:
egok.append(int(E))
def megold():
for X in range(C, N):
for Y in range(0, N-X):
tomb = [False for i in range(0, C)]
for Z in range(Y, Y+X):
K = egok[Z]
tomb[K] = True
if False not in tomb:
print(X)
return
megold()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11224 KiB | ||||
2 | Accepted | 17ms | 11536 KiB | ||||
subtask2 | 0/15 | ||||||
3 | Time limit exceeded | 1.57s | 8336 KiB | ||||
4 | Time limit exceeded | 1.588s | 8536 KiB | ||||
5 | Time limit exceeded | 1.564s | 8904 KiB | ||||
6 | Time limit exceeded | 1.575s | 4824 KiB | ||||
7 | Time limit exceeded | 1.55s | 4552 KiB | ||||
subtask3 | 0/10 | ||||||
8 | Wrong answer | 17ms | 12228 KiB | ||||
9 | Accepted | 17ms | 12324 KiB | ||||
10 | Accepted | 17ms | 12320 KiB | ||||
11 | Accepted | 18ms | 12312 KiB | ||||
12 | Accepted | 18ms | 12504 KiB | ||||
subtask4 | 0/20 | ||||||
13 | Time limit exceeded | 1.554s | 12796 KiB | ||||
14 | Accepted | 456ms | 13164 KiB | ||||
15 | Accepted | 108ms | 13064 KiB | ||||
16 | Accepted | 1.269s | 13264 KiB | ||||
17 | Accepted | 818ms | 13312 KiB | ||||
subtask5 | 0/25 | ||||||
18 | Wrong answer | 18ms | 14512 KiB | ||||
19 | Time limit exceeded | 1.57s | 6508 KiB | ||||
20 | Time limit exceeded | 1.57s | 6616 KiB | ||||
21 | Time limit exceeded | 1.567s | 6508 KiB | ||||
22 | Time limit exceeded | 1.567s | 6536 KiB | ||||
subtask6 | 0/30 | ||||||
23 | Wrong answer | 115ms | 57592 KiB | ||||
24 | Time limit exceeded | 1.577s | 25532 KiB | ||||
25 | Time limit exceeded | 1.569s | 28404 KiB | ||||
26 | Time limit exceeded | 1.565s | 29808 KiB | ||||
27 | Time limit exceeded | 1.588s | 30416 KiB | ||||
28 | Time limit exceeded | 1.58s | 28636 KiB | ||||
29 | Time limit exceeded | 1.567s | 25976 KiB | ||||
30 | Time limit exceeded | 1.562s | 10996 KiB |