結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,104 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 30 ms
10,104 KB
testcase_04 AC 30 ms
10,104 KB
testcase_05 AC 30 ms
10,104 KB
testcase_06 RE -
testcase_07 AC 196 ms
36,784 KB
testcase_08 AC 30 ms
10,108 KB
testcase_09 RE -
testcase_10 AC 30 ms
10,120 KB
testcase_11 RE -
testcase_12 AC 193 ms
33,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
l=list(map(int,input().split()))
a=[0]*(n+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