結果
| 問題 |
No.8016 unordered_mapなるたけ落とすマン
|
| ユーザー |
trineutron
|
| 提出日時 | 2019-12-08 16:37:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 420 bytes |
| コンパイル時間 | 2,056 ms |
| コンパイル使用メモリ | 172,596 KB |
| 実行使用メモリ | 11,272 KB |
| 最終ジャッジ日時 | 2024-12-30 18:10:20 |
| 合計ジャッジ時間 | 14,404 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 WA * 17 TLE * 1 |
ソースコード
#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++) {
int a_i;
cin >> a_i;
a[a_i]++;
}
for (int i = 0; i < m; i++) {
int b;
cin >> b;
cout << a[b];
if (i < m - 1) {
cout << " ";
} else {
cout << endl;
}
}
}
trineutron