Please sign in first.
Submission #31255054
Source Code Expand
n, m = map(int, input().split())
a = list(map(int, input().split()))
b = [0] * m
for a_i in a:
b[a_i - 1] += 1
max_b = 0
for b_i in b:
if max_b < b_i:
max_b = b_i
print(max_b)
Submission Info
| Submission Time | |
|---|---|
| Task | C - 最頻値 (Mode) |
| User | Pro_ktmr |
| Language | PyPy3 (7.3.0) |
| Score | 100 |
| Code Size | 200 Byte |
| Status | AC |
| Exec Time | 70 ms |
| Memory | 61936 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, sample-01.txt, sample-02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 70 ms | 61664 KiB |
| 01-02.txt | AC | 51 ms | 61744 KiB |
| 01-03.txt | AC | 49 ms | 61572 KiB |
| 01-04.txt | AC | 48 ms | 61580 KiB |
| 01-05.txt | AC | 47 ms | 61540 KiB |
| 01-06.txt | AC | 52 ms | 61936 KiB |
| 01-07.txt | AC | 50 ms | 61816 KiB |
| 01-08.txt | AC | 48 ms | 61708 KiB |
| 01-09.txt | AC | 48 ms | 61824 KiB |
| 01-10.txt | AC | 46 ms | 61736 KiB |
| sample-01.txt | AC | 52 ms | 61796 KiB |
| sample-02.txt | AC | 48 ms | 61764 KiB |