結果

問題 No.1032 数数え
ユーザー kikagekikage
提出日時 2021-08-15 03:07:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 211 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 42,040 KB
最終ジャッジ日時 2024-04-16 01:20:30
合計ジャッジ時間 2,579 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,752 KB
testcase_01 AC 32 ms
10,752 KB
testcase_02 AC 31 ms
10,752 KB
testcase_03 AC 32 ms
10,752 KB
testcase_04 AC 31 ms
10,880 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 RE -
testcase_07 AC 494 ms
42,040 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 RE -
testcase_10 AC 31 ms
10,880 KB
testcase_11 AC 32 ms
10,752 KB
testcase_12 AC 487 ms
40,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
L=list(map(int,input().split()))
backet=dict(zip(range(1,M+1),[0]*N))
for i in range(N):
    if 1<=L[i]<=M:backet[L[i]]=backet[L[i]]+1

for i in range(1,M+1):
    print(i,backet[i]) 
0