結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー Kmcode1
提出日時 2016-05-22 00:48:47
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 946 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,010 ms
コンパイル使用メモリ 125,068 KB
実行使用メモリ 8,112 KB
最終ジャッジ日時 2026-04-23 23:33:20
合計ジャッジ時間 6,760 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 47 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cctype>
#include<cstdlib>
#include<algorithm>
#include<bitset>
#include<cstdio>
#include<cstring>
#include<string>
#include<cctype>
#include<cstdlib>
#include<algorithm>
#include<bitset>
#include<vector>
#include<list>
#include<deque>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<cmath>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<ctime>
#include<complex>
#include<functional>
#include<climits>
#include<cassert>
#include<iterator>
#include<unordered_map>
using namespace std;

unordered_map<long long int, long long int> mp;

int n;
int m;

vector<int> v;
int main(){
	cin >> n >> m;
	mp.reserve(n);
	for (int i = 0; i < n; i++){
		int a;
		scanf("%lld", &a);
		v.push_back(a);
	}
	for (int i = 0; i < m; i++){
		int b;
		scanf("%lld", &b);
		if (i){
			printf(" ");
		}
		printf("%lld", mp[b]);
	}
	puts("");
	return 0;
}
0