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