結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー rin204rin204
提出日時 2022-03-26 14:41:03
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 2,177 ms
コンパイル使用メモリ 201,568 KB
実行使用メモリ 8,448 KB
最終ジャッジ日時 2024-04-23 06:41:50
合計ジャッジ時間 11,421 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,944 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 272 ms
8,192 KB
testcase_19 AC 272 ms
8,320 KB
testcase_20 AC 283 ms
8,320 KB
testcase_21 AC 268 ms
8,320 KB
testcase_22 AC 263 ms
8,448 KB
testcase_23 AC 266 ms
8,320 KB
testcase_24 AC 264 ms
8,448 KB
testcase_25 AC 262 ms
8,448 KB
testcase_26 AC 261 ms
8,192 KB
testcase_27 AC 256 ms
8,448 KB
testcase_28 AC 259 ms
8,192 KB
testcase_29 AC 257 ms
8,192 KB
testcase_30 AC 261 ms
8,192 KB
testcase_31 AC 261 ms
8,192 KB
testcase_32 AC 255 ms
8,320 KB
testcase_33 AC 248 ms
8,320 KB
testcase_34 AC 253 ms
8,448 KB
testcase_35 AC 248 ms
8,320 KB
testcase_36 AC 245 ms
8,192 KB
testcase_37 AC 247 ms
8,192 KB
testcase_38 AC 245 ms
8,064 KB
testcase_39 AC 247 ms
8,192 KB
testcase_40 AC 243 ms
8,192 KB
testcase_41 AC 2 ms
6,940 KB
testcase_42 AC 2 ms
6,940 KB
testcase_43 AC 2 ms
6,940 KB
testcase_44 AC 22 ms
6,944 KB
testcase_45 AC 19 ms
6,940 KB
testcase_46 AC 20 ms
6,940 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 14 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(void){
    int n, m;
    cin >> n >> m;
    map<int, int> mp;
    int a;
    for(int i = 0; i < n; i++){
        cin >> a;
        mp[a]++;
    }
    for(int i = 0; i < m; i++){
        cin >> a;
        cout << mp[a];
        if(i == m - 1) cout << "\n";
        else cout << " ";
    }
    
}
0