結果
| 問題 | 
                            No.8016 unordered_mapなるたけ落とすマン
                             | 
                    
| ユーザー | 
                             moti
                         | 
                    
| 提出日時 | 2018-11-11 16:34:46 | 
| 言語 | C++17(clang)  (17.0.6 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                MLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 413 bytes | 
| コンパイル時間 | 746 ms | 
| コンパイル使用メモリ | 128,384 KB | 
| 実行使用メモリ | 87,296 KB | 
| 最終ジャッジ日時 | 2024-11-30 12:46:30 | 
| 合計ジャッジ時間 | 17,312 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | MLE * 3 | 
| other | MLE * 48 | 
ソースコード
#include <unordered_map>
#include <iostream>
int main() {
    int n, m;
    std::cin >> n >> m;
    std::unordered_map<int64_t, int> mp;
    mp.reserve(10000000);
    for (int i = 0; i < n; i++) {
        int64_t x; std::cin >> x;
        mp[x]++;
    }
    for (int i = 0; i < m; i++) {
        int64_t x; std::cin >> x;
        if (i) std::cout << " ";
        std::cout << mp[x];
    }
    std::cout << "\n";
}
            
            
            
        
            
moti