結果

問題 No.1032 数数え
ユーザー convexineqconvexineq
提出日時 2021-03-30 05:39:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 198 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 111,740 KB
最終ジャッジ日時 2023-08-20 02:41:11
合計ジャッジ時間 2,637 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,044 KB
testcase_01 AC 70 ms
71,256 KB
testcase_02 AC 70 ms
70,724 KB
testcase_03 AC 70 ms
71,024 KB
testcase_04 AC 71 ms
70,728 KB
testcase_05 AC 72 ms
71,276 KB
testcase_06 AC 71 ms
71,336 KB
testcase_07 AC 198 ms
108,012 KB
testcase_08 AC 70 ms
71,108 KB
testcase_09 AC 93 ms
77,096 KB
testcase_10 AC 70 ms
70,936 KB
testcase_11 AC 70 ms
71,024 KB
testcase_12 AC 178 ms
111,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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