結果
問題 |
No.8016 unordered_mapなるたけ落とすマン
|
ユーザー |
![]() |
提出日時 | 2016-05-22 00:35:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 82 ms / 1,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 862 ms |
コンパイル使用メモリ | 81,220 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-11 05:01:43 |
合計ジャッジ時間 | 6,847 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 48 |
ソースコード
#include <iostream> #include <map> #include <vector> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m; cin>>n>>m; map<long, int> res; vector<long> a(n); for(auto& e: a) { cin>>e; ++res[e]; } vector<long> b(m); for(auto& e: b) { cin>>e; cout<<res[e]<<' '; } cout<<endl; }