結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー trineutron
提出日時 2019-12-08 16:38:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 2,222 ms
コンパイル使用メモリ 172,484 KB
実行使用メモリ 9,728 KB
最終ジャッジ日時 2024-12-30 18:13:33
合計ジャッジ時間 12,689 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    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;
        }
    }
}
0