Submission #65638792
Source Code Expand
Copy
def li():return list(map(int,input().split()))n,m=li()a=li()cnt=[0]*mcc=0for ai in a:cnt[ai-1]+=1cc+=1if min(cnt):exit(print(n-cc+1))print(0)
def li():return list(map(int,input().split()))
n,m=li()
a=li()
cnt=[0]*m
cc=0
for ai in a:
cnt[ai-1]+=1
cc+=1
if min(cnt):
exit(print(n-cc+1))
print(0)
Submission Info
| Submission Time | |
|---|---|
| Task | B - Not All |
| User | juten |
| Language | Python (CPython 3.11.4) |
| Score | 200 |
| Code Size | 181 Byte |
| Status | AC |
| Exec Time | 10 ms |
| Memory | 8932 KB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| 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 | 10 ms | 8864 KB |
| 00_sample_01.txt | AC | 9 ms | 8528 KB |
| 00_sample_02.txt | AC | 9 ms | 8932 KB |
| 01_random_00.txt | AC | 10 ms | 8600 KB |
| 01_random_01.txt | AC | 9 ms | 8804 KB |
| 01_random_02.txt | AC | 10 ms | 8524 KB |
| 01_random_03.txt | AC | 10 ms | 8436 KB |
| 02_random2_00.txt | AC | 10 ms | 8876 KB |
| 02_random2_01.txt | AC | 10 ms | 8864 KB |
| 02_random2_02.txt | AC | 9 ms | 8844 KB |
| 02_random2_03.txt | AC | 9 ms | 8784 KB |
| 02_random2_04.txt | AC | 10 ms | 8864 KB |
| 02_random2_05.txt | AC | 10 ms | 8804 KB |
| 02_random2_06.txt | AC | 9 ms | 8872 KB |
| 02_random2_07.txt | AC | 9 ms | 8792 KB |
| 03_handmade_00.txt | AC | 10 ms | 8784 KB |
| 03_handmade_01.txt | AC | 9 ms | 8872 KB |
| 03_handmade_02.txt | AC | 10 ms | 8516 KB |
| 03_handmade_03.txt | AC | 10 ms | 8788 KB |
| 03_handmade_04.txt | AC | 10 ms | 8772 KB |