結果
| 問題 |
No.8016 unordered_mapなるたけ落とすマン
|
| ユーザー |
trineutron
|
| 提出日時 | 2020-09-21 15:43:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 502 bytes |
| コンパイル時間 | 2,572 ms |
| コンパイル使用メモリ | 199,000 KB |
| 最終ジャッジ日時 | 2025-01-14 19:19:58 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 TLE * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
struct h {
size_t operator()(long n) const {
return n;
}
};
int main() {
int n, m;
cin >> n >> m;
unordered_map<long, int, h> a;
for (int i = 0; i < n; i++) {
long a_i;
cin >> a_i;
a[a_i]++;
}
for (int i = 0; i < m; i++) {
long b;
cin >> b;
cout << a[b];
if (i < m - 1) {
cout << " ";
} else {
cout << endl;
}
}
}
trineutron