結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー 紙ぺーぱー
提出日時 2016-06-08 20:27:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 385 bytes
コンパイル時間 2,083 ms
コンパイル使用メモリ 173,272 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 05:11:14
合計ジャッジ時間 8,755 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
typedef long long ll;
int main(){
    int a,b;
    cin>>a>>b;
    vector<ll>c(a),d(b);
    rep(i,a)cin>>c[i];
    rep(i,b)cin>>d[i];
    sort(c.begin(),c.end());
    for(auto& x: d){
        auto res=equal_range(c.begin(),c.end(),x);
        cout<<res.second-res.first<<' ';
    }
    cout<<endl;
}
0