結果
| 問題 | No.1032 数数え |
| ユーザー |
|
| 提出日時 | 2023-05-18 21:37:54 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 128 ms / 2,000 ms |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 146,176 KB |
| 最終ジャッジ日時 | 2026-05-26 14:04:42 |
| 合計ジャッジ時間 | 2,168 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
from collections import defaultdict
N, M = map(int, input().split())
L = list(map(int, input().split()))
D = defaultdict(int)
for l in L:
D[l]+=1
for i in range(1, M+1):
print(i, D[i])