結果

問題 No.1032 数数え
ユーザー hstnhstn
提出日時 2020-05-01 00:58:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 323 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 35,408 KB
最終ジャッジ日時 2023-08-23 07:14:49
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,508 KB
testcase_01 AC 17 ms
8,456 KB
testcase_02 AC 17 ms
8,404 KB
testcase_03 AC 17 ms
8,408 KB
testcase_04 AC 18 ms
8,392 KB
testcase_05 AC 17 ms
8,548 KB
testcase_06 AC 17 ms
8,588 KB
testcase_07 AC 314 ms
35,408 KB
testcase_08 AC 18 ms
8,404 KB
testcase_09 AC 31 ms
8,828 KB
testcase_10 AC 18 ms
8,400 KB
testcase_11 AC 17 ms
8,464 KB
testcase_12 AC 323 ms
27,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n,m = map(int,input().split())
l = list(map(int,input().split()))
c = Counter(l)
for i in range(1,m+1):
    print (i,c[i])
0