結果
| 問題 |
No.1032 数数え
|
| ユーザー |
|
| 提出日時 | 2025-05-01 10:07:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 360 ms / 2,000 ms |
| コード長 | 229 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 38,032 KB |
| 最終ジャッジ日時 | 2025-05-01 10:07:24 |
| 合計ジャッジ時間 | 2,849 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
from collections import defaultdict
def Main():
n,m=map(int,input().split())
a=list(map(int,input().split()))
d=defaultdict(int)
for x in a:
d[x]+=1
for i in range(1,m+1):
print(i,d[i])
Main()