結果

問題 No.1032 数数え
ユーザー matriematrie
提出日時 2020-12-19 16:47:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 165 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 11,808 KB
実行使用メモリ 36,780 KB
最終ジャッジ日時 2023-10-21 09:20:25
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,108 KB
testcase_01 AC 24 ms
10,108 KB
testcase_02 AC 26 ms
10,108 KB
testcase_03 AC 25 ms
10,108 KB
testcase_04 AC 25 ms
10,108 KB
testcase_05 AC 25 ms
10,108 KB
testcase_06 AC 25 ms
10,108 KB
testcase_07 AC 172 ms
36,780 KB
testcase_08 AC 29 ms
10,112 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 24 ms
10,108 KB
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
l=list(map(int,input().split()))
a=[0]*(max(l)+1)
for i in l: a[i]+=1
b=[str(i)+' '+str(a[i]) for i in range(1,k+1)]
print('\n'.join(b))
0