結果
問題 |
No.8016 unordered_mapなるたけ落とすマン
|
ユーザー |
![]() |
提出日時 | 2016-06-08 20:27:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 1,977 ms |
コンパイル使用メモリ | 173,076 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 03:21:52 |
合計ジャッジ時間 | 13,640 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 48 |
ソースコード
#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<<endl; } cout<<endl; }