結果

問題 No.1032 数数え
ユーザー dangodango
提出日時 2023-06-11 14:55:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 108,872 KB
最終ジャッジ日時 2023-08-31 01:56:42
合計ジャッジ時間 2,415 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,260 KB
testcase_01 AC 59 ms
71,036 KB
testcase_02 AC 59 ms
71,304 KB
testcase_03 AC 59 ms
71,188 KB
testcase_04 AC 60 ms
71,212 KB
testcase_05 AC 63 ms
71,040 KB
testcase_06 AC 62 ms
71,136 KB
testcase_07 AC 143 ms
108,872 KB
testcase_08 AC 59 ms
71,236 KB
testcase_09 AC 71 ms
76,440 KB
testcase_10 AC 60 ms
71,392 KB
testcase_11 AC 59 ms
71,096 KB
testcase_12 AC 128 ms
105,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
L = list(map(int, input().split()))
K = [0] * max(L)
for I in L:
  K[I - 1] += 1
for T in range(M):
  try:
    print(f"{T + 1} {K[T]}")
  except:
    print(f"{T + 1} 0")
0