結果
| 問題 |
No.8016 unordered_mapなるたけ落とすマン
|
| ユーザー |
trineutron
|
| 提出日時 | 2019-12-08 16:39:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 422 bytes |
| コンパイル時間 | 2,162 ms |
| コンパイル使用メモリ | 172,556 KB |
| 実行使用メモリ | 13,196 KB |
| 最終ジャッジ日時 | 2024-12-30 18:16:04 |
| 合計ジャッジ時間 | 21,194 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 TLE * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
unordered_map<long, int> 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