結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー shora_kujira16shora_kujira16
提出日時 2016-05-22 00:54:22
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 874 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 105,088 KB
最終ジャッジ日時 2024-04-16 11:53:34
合計ジャッジ時間 8,149 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 MLE -
testcase_04 MLE -
testcase_05 MLE -
testcase_06 MLE -
testcase_07 MLE -
testcase_08 MLE -
testcase_09 MLE -
testcase_10 MLE -
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 MLE -
testcase_19 MLE -
testcase_20 MLE -
testcase_21 MLE -
testcase_22 MLE -
testcase_23 MLE -
testcase_24 MLE -
testcase_25 MLE -
testcase_26 MLE -
testcase_27 MLE -
testcase_28 MLE -
testcase_29 MLE -
testcase_30 MLE -
testcase_31 MLE -
testcase_32 MLE -
testcase_33 MLE -
testcase_34 MLE -
testcase_35 MLE -
testcase_36 MLE -
testcase_37 MLE -
testcase_38 MLE -
testcase_39 MLE -
testcase_40 MLE -
testcase_41 MLE -
testcase_42 MLE -
testcase_43 MLE -
testcase_44 MLE -
testcase_45 MLE -
testcase_46 MLE -
testcase_47 MLE -
testcase_48 MLE -
testcase_49 MLE -
testcase_50 MLE -
権限があれば一括ダウンロードができます

ソースコード

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