結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー cielciel
提出日時 2016-05-22 15:05:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 212 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 53,248 KB
実行使用メモリ 9,472 KB
最終ジャッジ日時 2024-10-11 05:06:56
合計ジャッジ時間 6,397 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <map>
#include <cstdio>
int main(){
	int N,M;
	long long x;
	std::map<long long,int>m;
	scanf("%d%d",&N,&M);
	for(;N--;)scanf("%lld",&x),m[x]++;
	for(;M--;)scanf("%lld",&x),printf(M?"%d ":"%d\n",m[x]);
}
0