結果

問題 No.1032 数数え
ユーザー maspymaspy
提出日時 2020-04-23 18:25:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 853 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 53,024 KB
最終ジャッジ日時 2024-04-21 20:18:35
合計ジャッジ時間 9,899 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 527 ms
44,056 KB
testcase_01 AC 528 ms
44,192 KB
testcase_02 AC 532 ms
44,060 KB
testcase_03 AC 536 ms
43,992 KB
testcase_04 AC 532 ms
44,068 KB
testcase_05 AC 530 ms
44,312 KB
testcase_06 AC 532 ms
44,188 KB
testcase_07 AC 853 ms
53,024 KB
testcase_08 AC 531 ms
44,068 KB
testcase_09 AC 548 ms
43,812 KB
testcase_10 AC 534 ms
43,944 KB
testcase_11 AC 535 ms
43,936 KB
testcase_12 AC 850 ms
52,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np

N, M = map(int, readline().split())
L = np.array(read().split(), np.int32)
counter = np.bincount(L, minlength=M + 1)
for i, x in enumerate(counter[1: M + 1].tolist(), 1):
    print(i, x)
0