結果

問題 No.1032 数数え
ユーザー mirucamiruca
提出日時 2020-06-17 21:33:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 326 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 35,384 KB
最終ジャッジ日時 2023-09-16 11:41:05
合計ジャッジ時間 1,824 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,452 KB
testcase_01 AC 18 ms
8,480 KB
testcase_02 AC 18 ms
8,480 KB
testcase_03 AC 18 ms
8,548 KB
testcase_04 AC 17 ms
8,384 KB
testcase_05 AC 18 ms
8,352 KB
testcase_06 AC 18 ms
8,364 KB
testcase_07 AC 311 ms
35,384 KB
testcase_08 AC 18 ms
8,528 KB
testcase_09 AC 31 ms
8,692 KB
testcase_10 AC 18 ms
8,480 KB
testcase_11 AC 17 ms
8,560 KB
testcase_12 AC 326 ms
27,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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