Submission #65637778


Source Code Expand

n,m = map(int,input().split())
a = list(map(int,input().split()))
while a:
  flag = True
  for i in range(1,m+1):
    if i not in a:
      flag = False
  if not flag:
    break
  a.pop()
print(n-len(a))

Submission Info

Submission Time
Task B - Not All
User 10isiatama
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 212 Byte
Status AC
Exec Time 60 ms
Memory 76684 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 20
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 02_random2_00.txt, 02_random2_01.txt, 02_random2_02.txt, 02_random2_03.txt, 02_random2_04.txt, 02_random2_05.txt, 02_random2_06.txt, 02_random2_07.txt, 03_handmade_00.txt, 03_handmade_01.txt, 03_handmade_02.txt, 03_handmade_03.txt, 03_handmade_04.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 58 ms 76240 KiB
00_sample_01.txt AC 58 ms 76260 KiB
00_sample_02.txt AC 58 ms 76492 KiB
01_random_00.txt AC 58 ms 76296 KiB
01_random_01.txt AC 58 ms 76300 KiB
01_random_02.txt AC 59 ms 76444 KiB
01_random_03.txt AC 59 ms 76684 KiB
02_random2_00.txt AC 58 ms 76480 KiB
02_random2_01.txt AC 60 ms 76400 KiB
02_random2_02.txt AC 59 ms 76424 KiB
02_random2_03.txt AC 58 ms 76364 KiB
02_random2_04.txt AC 58 ms 76264 KiB
02_random2_05.txt AC 57 ms 76284 KiB
02_random2_06.txt AC 58 ms 76408 KiB
02_random2_07.txt AC 58 ms 76656 KiB
03_handmade_00.txt AC 58 ms 76204 KiB
03_handmade_01.txt AC 58 ms 76664 KiB
03_handmade_02.txt AC 57 ms 76312 KiB
03_handmade_03.txt AC 58 ms 76412 KiB
03_handmade_04.txt AC 58 ms 76596 KiB