結果
| 問題 | 
                            No.8016 unordered_mapなるたけ落とすマン
                             | 
                    
| ユーザー | 
                             shora_kujira16
                         | 
                    
| 提出日時 | 2016-05-22 00:54:22 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                MLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 874 bytes | 
| コンパイル時間 | 249 ms | 
| コンパイル使用メモリ | 82,796 KB | 
| 実行使用メモリ | 105,188 KB | 
| 最終ジャッジ日時 | 2024-10-07 05:56:54 | 
| 合計ジャッジ時間 | 8,128 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | MLE * 3 | 
| other | MLE * 48 | 
ソースコード
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()
            
            
            
        
            
shora_kujira16