2753 | 2023-01-21 00:57:18 | renn | Karácsonyi égők | python3 | Runtime error 0/100 | 123ms | 59444 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, X):
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 list:
print(X)
return
megold()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 18ms | 10928 KiB | ||||
2 | Runtime error | 17ms | 11524 KiB | ||||
subtask2 | 0/15 | ||||||
3 | Runtime error | 82ms | 20052 KiB | ||||
4 | Runtime error | 85ms | 20540 KiB | ||||
5 | Runtime error | 81ms | 20332 KiB | ||||
6 | Runtime error | 17ms | 12216 KiB | ||||
7 | Runtime error | 17ms | 12164 KiB | ||||
subtask3 | 0/10 | ||||||
8 | Runtime error | 17ms | 12344 KiB | ||||
9 | Runtime error | 17ms | 12488 KiB | ||||
10 | Runtime error | 17ms | 12584 KiB | ||||
11 | Runtime error | 17ms | 13008 KiB | ||||
12 | Runtime error | 17ms | 13144 KiB | ||||
subtask4 | 0/20 | ||||||
13 | Runtime error | 17ms | 13160 KiB | ||||
14 | Runtime error | 17ms | 13328 KiB | ||||
15 | Runtime error | 17ms | 13236 KiB | ||||
16 | Runtime error | 17ms | 13276 KiB | ||||
17 | Runtime error | 17ms | 13224 KiB | ||||
subtask5 | 0/25 | ||||||
18 | Runtime error | 19ms | 14660 KiB | ||||
19 | Runtime error | 18ms | 14368 KiB | ||||
20 | Runtime error | 18ms | 14276 KiB | ||||
21 | Runtime error | 18ms | 13924 KiB | ||||
22 | Runtime error | 17ms | 13776 KiB | ||||
subtask6 | 0/30 | ||||||
23 | Runtime error | 123ms | 57376 KiB | ||||
24 | Runtime error | 115ms | 52020 KiB | ||||
25 | Runtime error | 116ms | 57252 KiB | ||||
26 | Runtime error | 114ms | 59260 KiB | ||||
27 | Runtime error | 119ms | 59444 KiB | ||||
28 | Runtime error | 108ms | 57364 KiB | ||||
29 | Runtime error | 112ms | 52344 KiB | ||||
30 | Runtime error | 82ms | 22248 KiB |