結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー furafura
提出日時 2020-05-06 04:35:37
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 93 ms / 1,000 ms
コード長 317 bytes
コンパイル時間 2,399 ms
コンパイル使用メモリ 203,580 KB
実行使用メモリ 9,868 KB
最終ジャッジ日時 2023-09-10 00:05:11
合計ジャッジ時間 11,783 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 82 ms
9,720 KB
testcase_04 AC 93 ms
9,724 KB
testcase_05 AC 88 ms
9,700 KB
testcase_06 AC 89 ms
9,720 KB
testcase_07 AC 89 ms
9,696 KB
testcase_08 AC 89 ms
9,712 KB
testcase_09 AC 89 ms
9,724 KB
testcase_10 AC 88 ms
9,708 KB
testcase_11 AC 90 ms
9,724 KB
testcase_12 AC 88 ms
9,768 KB
testcase_13 AC 88 ms
9,760 KB
testcase_14 AC 87 ms
9,764 KB
testcase_15 AC 88 ms
9,648 KB
testcase_16 AC 87 ms
9,764 KB
testcase_17 AC 87 ms
9,712 KB
testcase_18 AC 87 ms
9,624 KB
testcase_19 AC 89 ms
9,848 KB
testcase_20 AC 89 ms
9,708 KB
testcase_21 AC 87 ms
9,848 KB
testcase_22 AC 87 ms
9,696 KB
testcase_23 AC 86 ms
9,628 KB
testcase_24 AC 85 ms
9,708 KB
testcase_25 AC 83 ms
9,720 KB
testcase_26 AC 82 ms
9,760 KB
testcase_27 AC 84 ms
9,788 KB
testcase_28 AC 82 ms
9,704 KB
testcase_29 AC 81 ms
9,720 KB
testcase_30 AC 79 ms
9,868 KB
testcase_31 AC 78 ms
9,640 KB
testcase_32 AC 78 ms
9,692 KB
testcase_33 AC 76 ms
9,704 KB
testcase_34 AC 75 ms
9,672 KB
testcase_35 AC 75 ms
9,768 KB
testcase_36 AC 75 ms
9,668 KB
testcase_37 AC 73 ms
9,716 KB
testcase_38 AC 73 ms
9,712 KB
testcase_39 AC 71 ms
9,688 KB
testcase_40 AC 71 ms
9,692 KB
testcase_41 AC 1 ms
4,380 KB
testcase_42 AC 2 ms
4,380 KB
testcase_43 AC 1 ms
4,380 KB
testcase_44 AC 7 ms
4,380 KB
testcase_45 AC 7 ms
4,376 KB
testcase_46 AC 7 ms
4,380 KB
testcase_47 AC 85 ms
7,396 KB
testcase_48 AC 89 ms
7,704 KB
testcase_49 AC 88 ms
7,684 KB
testcase_50 AC 42 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;
using lint=long long;

int main(){
	int n,m; scanf("%d%d",&n,&m);
	map<lint,int> f;
	rep(i,n){
		lint a; scanf("%lld",&a);
		++f[a];
	}
	rep(j,m){
		lint b; scanf("%lld",&b);
		printf("%d%c",f[b],j<m-1?' ':'\n');
	}
	return 0;
}
0