結果

問題 No.1032 数数え
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-29 12:11:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 254 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 116,468 KB
最終ジャッジ日時 2023-09-29 03:58:46
合計ジャッジ時間 3,534 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,720 KB
testcase_01 AC 93 ms
71,436 KB
testcase_02 AC 94 ms
71,332 KB
testcase_03 AC 94 ms
71,580 KB
testcase_04 AC 95 ms
71,488 KB
testcase_05 AC 96 ms
71,504 KB
testcase_06 AC 94 ms
71,528 KB
testcase_07 AC 254 ms
116,468 KB
testcase_08 AC 94 ms
71,420 KB
testcase_09 AC 118 ms
77,472 KB
testcase_10 AC 95 ms
71,560 KB
testcase_11 AC 95 ms
71,292 KB
testcase_12 AC 225 ms
106,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int, input().split())
L = list(map(int, input().split()))
from collections import Counter
C = Counter(L)
for i in range(1, m+1):
    if i not in C:
        print(i, 0)
    else:
        print(i, C[i])
0