結果

問題 No.1032 数数え
ユーザー roarisroaris
提出日時 2020-12-02 13:37:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 250 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 142,012 KB
最終ジャッジ日時 2023-10-11 11:09:37
合計ジャッジ時間 3,467 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
71,708 KB
testcase_01 AC 96 ms
71,468 KB
testcase_02 AC 96 ms
71,604 KB
testcase_03 AC 92 ms
71,500 KB
testcase_04 AC 93 ms
71,628 KB
testcase_05 AC 94 ms
71,604 KB
testcase_06 AC 92 ms
71,456 KB
testcase_07 AC 250 ms
142,012 KB
testcase_08 AC 96 ms
71,452 KB
testcase_09 AC 120 ms
78,020 KB
testcase_10 AC 93 ms
71,580 KB
testcase_11 AC 93 ms
71,804 KB
testcase_12 AC 220 ms
106,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N, M = map(int, input().split())
L = list(map(int, input().split()))
cnt = Counter(L)

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