結果
| 問題 | No.8016 unordered_mapなるたけ落とすマン |
| ユーザー |
threepipes_s
|
| 提出日時 | 2016-05-22 02:16:07 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 1,000 ms |
| コード長 | 486 bytes |
| 記録 | |
| コンパイル時間 | 509 ms |
| コンパイル使用メモリ | 94,648 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-04-23 23:51:58 |
| 合計ジャッジ時間 | 4,707 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
#include <iostream>
#include <stdio.h>
#include <map>
#include <vector>
#include <algorithm>
#include <utility>
#include <climits>
#include <queue>
using namespace std;
typedef pair<int, int> P;
typedef long long LL;
int main(){
int n, m;
long a;
cin >> n >> m;
map<long, int> mp;
for(int i=0; i<n; i++){
scanf("%ld", &a);
mp[a]++;
}
for(int i=0; i<m; i++){
scanf("%ld", &a);
printf("%ld ", mp[a]);
}
printf("\n");
}
threepipes_s