結果
| 問題 |
No.1032 数数え
|
| ユーザー |
|
| 提出日時 | 2021-02-25 10:31:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 2,000 ms |
| コード長 | 170 bytes |
| コンパイル時間 | 362 ms |
| コンパイル使用メモリ | 82,588 KB |
| 実行使用メモリ | 94,976 KB |
| 最終ジャッジ日時 | 2024-09-25 09:09:57 |
| 合計ジャッジ時間 | 2,179 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
N, M = map(int, input().split())
cnt = [0] * (M + 1)
for l in map(int, input().split()):
if l <= M:
cnt[l] += 1
for i in range(1, M + 1):
print(i, cnt[i])