結果
| 問題 |
No.3016 ハチマキおじさん
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 21:36:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 478 bytes |
| コンパイル時間 | 907 ms |
| コンパイル使用メモリ | 86,992 KB |
| 実行使用メモリ | 14,472 KB |
| 最終ジャッジ日時 | 2025-06-12 21:39:06 |
| 合計ジャッジ時間 | 5,975 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 31 |
ソースコード
#include <unordered_map>
#include <vector>
#include <iostream>
using namespace std;
int main() {
long long N, M;
cin >> N >> M;
unordered_map<long long, int> freq;
for (int i = 0; i < N; i++) {
long long a;
cin >> a;
freq[a]++;
}
vector<long long> B(M);
for (int i = 0; i < M; i++) {
cin >> B[i];
}
for (int i = 0; i < M; i++) {
cout << freq[B[i]] << " ";
}
cout << endl;
return 0;
}
gew1fw