結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー shora_kujira16shora_kujira16
提出日時 2016-05-22 00:53:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 233 ms / 1,000 ms
コード長 874 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 35,944 KB
最終ジャッジ日時 2024-04-16 11:52:44
合計ジャッジ時間 12,345 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 32 ms
10,624 KB
testcase_03 AC 221 ms
35,328 KB
testcase_04 AC 233 ms
35,944 KB
testcase_05 AC 228 ms
35,664 KB
testcase_06 AC 225 ms
35,784 KB
testcase_07 AC 227 ms
35,652 KB
testcase_08 AC 231 ms
35,772 KB
testcase_09 AC 227 ms
34,484 KB
testcase_10 AC 225 ms
35,488 KB
testcase_11 AC 227 ms
35,612 KB
testcase_12 AC 229 ms
35,452 KB
testcase_13 AC 225 ms
35,456 KB
testcase_14 AC 228 ms
35,316 KB
testcase_15 AC 226 ms
35,440 KB
testcase_16 AC 225 ms
35,420 KB
testcase_17 AC 224 ms
35,280 KB
testcase_18 AC 225 ms
35,380 KB
testcase_19 AC 226 ms
35,100 KB
testcase_20 AC 229 ms
35,204 KB
testcase_21 AC 227 ms
35,320 KB
testcase_22 AC 225 ms
35,048 KB
testcase_23 AC 226 ms
35,032 KB
testcase_24 AC 230 ms
34,872 KB
testcase_25 AC 223 ms
34,772 KB
testcase_26 AC 221 ms
34,720 KB
testcase_27 AC 222 ms
34,644 KB
testcase_28 AC 222 ms
34,584 KB
testcase_29 AC 226 ms
34,252 KB
testcase_30 AC 223 ms
34,016 KB
testcase_31 AC 225 ms
33,644 KB
testcase_32 AC 226 ms
33,176 KB
testcase_33 AC 223 ms
32,684 KB
testcase_34 AC 222 ms
31,920 KB
testcase_35 AC 220 ms
31,392 KB
testcase_36 AC 217 ms
31,520 KB
testcase_37 AC 216 ms
31,388 KB
testcase_38 AC 217 ms
31,384 KB
testcase_39 AC 214 ms
31,376 KB
testcase_40 AC 218 ms
32,012 KB
testcase_41 AC 30 ms
10,752 KB
testcase_42 AC 30 ms
10,752 KB
testcase_43 AC 31 ms
10,624 KB
testcase_44 AC 45 ms
12,032 KB
testcase_45 AC 44 ms
12,032 KB
testcase_46 AC 44 ms
11,904 KB
testcase_47 AC 171 ms
24,172 KB
testcase_48 AC 188 ms
27,388 KB
testcase_49 AC 181 ms
25,316 KB
testcase_50 AC 212 ms
28,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

class Io:

    def __init__(self):
        self.tokens_index = 0
        self.tokens = []

    def next_line(self):
        assert self.tokens_index >= len(self.tokens)
        return input()

    def next(self):
        if self.tokens_index < len(self.tokens):
            token = self.tokens[self.tokens_index]
            self.tokens_index += 1
            return token
        else:
            self.tokens = self.next_line().split()
            self.tokens_index = 0
            return self.next()

    def next_int(self):
        return int(self.next())

    def next_float(self):
        return float(self.next())


def main():
    io = Io()
    n = io.next_int()
    m = io.next_int()
    c = collections.Counter(io.next_int() for i in range(n))
    print(' '.join(str(c[io.next_int()]) for i in range(m)))

if __name__ == '__main__':
    main()
0