結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー taba
提出日時 2017-05-20 07:52:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 113 ms / 1,000 ms
コード長 546 bytes
コンパイル時間 1,478 ms
コンパイル使用メモリ 137,464 KB
最終ジャッジ日時 2025-01-05 00:28:51
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cassert>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
#include <utility>
#include <regex>
#include <tuple>
#include <map>
#include <set>
#include <iostream>

using namespace std;

int main(){
	int n,m;
	-scanf("%d%d",&n,&m);
	vector<int64_t> a(n),b(m);
	map<int64_t,int64_t> c;
	for(auto&i:a){
		-scanf("%ld",&i);
		c[i]++;
	}
	for(auto&i:b){
		-scanf("%ld",&i);
	}
	for(auto i:b){
		printf("%lu ",c[i]);
	}
	puts("");
	return 0;
}
0