結果
問題 | No.8016 unordered_mapなるたけ落とすマン |
ユーザー |
![]() |
提出日時 | 2020-06-01 09:25:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 3,584 ms |
コンパイル使用メモリ | 197,652 KB |
最終ジャッジ日時 | 2025-01-10 20:15:11 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 WA * 17 TLE * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N, M; cin >> N >> M; unordered_map<int64_t, int> mp; for (int i = 0; i < N; i++) { int a; cin >> a; mp[a]++; } for (int i = 0; i < M; i++) { int b; cin >> b; cout << mp[b] << (i == M - 1 ? '\n' : ' '); } return 0; }