結果

問題 No.1032 数数え
ユーザー MaboyMaboy
提出日時 2021-09-26 16:19:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 330 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 29,772 KB
最終ジャッジ日時 2023-09-19 02:55:07
合計ジャッジ時間 2,095 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,836 KB
testcase_01 AC 16 ms
7,832 KB
testcase_02 AC 16 ms
7,888 KB
testcase_03 AC 16 ms
7,856 KB
testcase_04 AC 16 ms
7,892 KB
testcase_05 AC 17 ms
7,732 KB
testcase_06 AC 17 ms
7,840 KB
testcase_07 AC 316 ms
29,772 KB
testcase_08 AC 16 ms
7,828 KB
testcase_09 AC 27 ms
8,484 KB
testcase_10 AC 16 ms
7,788 KB
testcase_11 AC 16 ms
7,828 KB
testcase_12 AC 330 ms
27,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
l = list(map(int,input().split()))
a = [0] * m
for i in l:
    if 0 < i <= m:
        a[i-1] += 1
for i in range(m):
    print(i+1,a[i])
0