結果

問題 No.1032 数数え
ユーザー ああいいああいい
提出日時 2021-12-05 18:46:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 298 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,476 KB
実行使用メモリ 29,920 KB
最終ジャッジ日時 2023-09-21 14:53:46
合計ジャッジ時間 2,558 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
9,500 KB
testcase_01 AC 18 ms
9,536 KB
testcase_02 AC 18 ms
9,632 KB
testcase_03 AC 18 ms
9,668 KB
testcase_04 AC 19 ms
9,544 KB
testcase_05 AC 18 ms
9,480 KB
testcase_06 AC 19 ms
9,668 KB
testcase_07 AC 298 ms
29,920 KB
testcase_08 AC 18 ms
9,600 KB
testcase_09 AC 29 ms
9,748 KB
testcase_10 AC 18 ms
9,536 KB
testcase_11 AC 18 ms
9,568 KB
testcase_12 AC 298 ms
27,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = list(map(int,input().split()))
L = list(map(int,input().split()))

count = [0] * (2 * 10 ** 5 + 1)
for i in L:
    count[i] += 1
for i in range(1,M+1):
    print(i,count[i])
0