27532023-01-21 00:57:18rennKarácsonyi égőkpython3Runtime error 0/100123ms59444 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()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error18ms10928 KiB
2Runtime error17ms11524 KiB
subtask20/15
3Runtime error82ms20052 KiB
4Runtime error85ms20540 KiB
5Runtime error81ms20332 KiB
6Runtime error17ms12216 KiB
7Runtime error17ms12164 KiB
subtask30/10
8Runtime error17ms12344 KiB
9Runtime error17ms12488 KiB
10Runtime error17ms12584 KiB
11Runtime error17ms13008 KiB
12Runtime error17ms13144 KiB
subtask40/20
13Runtime error17ms13160 KiB
14Runtime error17ms13328 KiB
15Runtime error17ms13236 KiB
16Runtime error17ms13276 KiB
17Runtime error17ms13224 KiB
subtask50/25
18Runtime error19ms14660 KiB
19Runtime error18ms14368 KiB
20Runtime error18ms14276 KiB
21Runtime error18ms13924 KiB
22Runtime error17ms13776 KiB
subtask60/30
23Runtime error123ms57376 KiB
24Runtime error115ms52020 KiB
25Runtime error116ms57252 KiB
26Runtime error114ms59260 KiB
27Runtime error119ms59444 KiB
28Runtime error108ms57364 KiB
29Runtime error112ms52344 KiB
30Runtime error82ms22248 KiB