結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー trineutrontrineutron
提出日時 2019-12-08 16:38:40
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 170,772 KB
実行使用メモリ 9,836 KB
最終ジャッジ日時 2023-08-29 00:59:52
合計ジャッジ時間 11,538 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 259 ms
9,776 KB
testcase_19 AC 256 ms
9,708 KB
testcase_20 AC 248 ms
9,564 KB
testcase_21 AC 256 ms
9,552 KB
testcase_22 AC 251 ms
9,604 KB
testcase_23 AC 257 ms
9,712 KB
testcase_24 AC 247 ms
9,668 KB
testcase_25 AC 253 ms
9,552 KB
testcase_26 AC 248 ms
9,612 KB
testcase_27 AC 242 ms
9,548 KB
testcase_28 AC 243 ms
9,636 KB
testcase_29 AC 247 ms
9,604 KB
testcase_30 AC 254 ms
9,628 KB
testcase_31 AC 240 ms
9,600 KB
testcase_32 AC 244 ms
9,628 KB
testcase_33 AC 233 ms
9,596 KB
testcase_34 AC 240 ms
9,836 KB
testcase_35 AC 234 ms
9,640 KB
testcase_36 AC 233 ms
9,800 KB
testcase_37 AC 232 ms
9,528 KB
testcase_38 AC 237 ms
9,592 KB
testcase_39 AC 234 ms
9,568 KB
testcase_40 AC 226 ms
9,556 KB
testcase_41 AC 2 ms
4,380 KB
testcase_42 AC 2 ms
4,380 KB
testcase_43 AC 1 ms
4,380 KB
testcase_44 AC 21 ms
4,376 KB
testcase_45 AC 18 ms
4,376 KB
testcase_46 AC 20 ms
4,376 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 13 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

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