結果

問題 No.1032 数数え
ユーザー numberfromnumberfrom
提出日時 2020-05-16 21:08:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 365 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 11,780 KB
実行使用メモリ 31,800 KB
最終ジャッジ日時 2023-10-24 01:51:06
合計ジャッジ時間 2,964 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,056 KB
testcase_01 AC 28 ms
10,056 KB
testcase_02 AC 28 ms
10,056 KB
testcase_03 AC 27 ms
10,056 KB
testcase_04 AC 28 ms
10,056 KB
testcase_05 AC 27 ms
10,056 KB
testcase_06 AC 28 ms
10,056 KB
testcase_07 AC 365 ms
31,800 KB
testcase_08 AC 28 ms
10,060 KB
testcase_09 AC 41 ms
10,376 KB
testcase_10 AC 29 ms
10,068 KB
testcase_11 AC 28 ms
10,056 KB
testcase_12 AC 361 ms
29,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

num = [0] * M
for i in range(N):
    if L[i] <= M:
        num[L[i]-1] += 1

for i, j in enumerate(num):
    print(i+1, j)
0