結果
| 問題 | 
                            No.8016 unordered_mapなるたけ落とすマン
                             | 
                    
| ユーザー | 
                             紙ぺーぱー
                         | 
                    
| 提出日時 | 2016-06-08 19:54:10 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 344 bytes | 
| コンパイル時間 | 2,006 ms | 
| コンパイル使用メモリ | 171,440 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-09 03:19:00 | 
| 合計ジャッジ時間 | 6,951 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 WA * 19 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(n) for(int i =0;i<(int)(n);i++)
int main(){
    int a,b;
    cin>>a>>b;
    vector<int>c(a),d(b);
    rep(a)cin>>c[i];
    rep(b)cin>>d[i];
    sort(c.begin(),c.end());
    for(auto& x :d)cout<<(upper_bound(c.begin(),c.end(),x)-lower_bound(c.begin(),c.end(),x))<<' ';
    cout<<endl;
}
            
            
            
        
            
紙ぺーぱー