結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー ミドリムシミドリムシ
提出日時 2018-03-04 13:54:12
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 454 bytes
コンパイル時間 753 ms
コンパイル使用メモリ 81,328 KB
実行使用メモリ 10,012 KB
最終ジャッジ日時 2023-09-21 21:33:39
合計ジャッジ時間 12,003 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 122 ms
9,660 KB
testcase_04 AC 137 ms
9,708 KB
testcase_05 AC 135 ms
9,784 KB
testcase_06 AC 135 ms
9,820 KB
testcase_07 AC 134 ms
9,680 KB
testcase_08 AC 134 ms
9,808 KB
testcase_09 AC 134 ms
9,752 KB
testcase_10 AC 134 ms
9,652 KB
testcase_11 AC 132 ms
9,784 KB
testcase_12 AC 131 ms
9,752 KB
testcase_13 AC 130 ms
9,864 KB
testcase_14 AC 128 ms
9,808 KB
testcase_15 AC 132 ms
9,712 KB
testcase_16 AC 129 ms
9,756 KB
testcase_17 AC 129 ms
9,932 KB
testcase_18 AC 127 ms
9,680 KB
testcase_19 AC 127 ms
9,716 KB
testcase_20 AC 127 ms
9,652 KB
testcase_21 AC 125 ms
9,824 KB
testcase_22 AC 126 ms
9,656 KB
testcase_23 AC 124 ms
9,816 KB
testcase_24 AC 123 ms
9,648 KB
testcase_25 AC 123 ms
9,868 KB
testcase_26 AC 118 ms
9,804 KB
testcase_27 AC 118 ms
10,012 KB
testcase_28 AC 117 ms
9,928 KB
testcase_29 AC 117 ms
9,748 KB
testcase_30 AC 114 ms
9,712 KB
testcase_31 AC 114 ms
9,796 KB
testcase_32 AC 112 ms
9,804 KB
testcase_33 AC 107 ms
9,876 KB
testcase_34 AC 109 ms
9,836 KB
testcase_35 AC 107 ms
9,728 KB
testcase_36 AC 106 ms
9,784 KB
testcase_37 AC 104 ms
9,772 KB
testcase_38 AC 105 ms
9,664 KB
testcase_39 AC 101 ms
9,616 KB
testcase_40 AC 106 ms
9,676 KB
testcase_41 AC 2 ms
4,380 KB
testcase_42 AC 2 ms
4,380 KB
testcase_43 AC 1 ms
4,500 KB
testcase_44 AC 10 ms
4,380 KB
testcase_45 AC 9 ms
4,376 KB
testcase_46 AC 10 ms
4,380 KB
testcase_47 AC 113 ms
7,176 KB
testcase_48 AC 126 ms
7,584 KB
testcase_49 AC 125 ms
7,460 KB
testcase_50 AC 100 ms
4,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
using namespace std;

int main(){
    int N, M;
    cin >> N >> M;
    map<long, int> array_A;
    for(int i = 0; i < N; i++){
        long num;
        cin >> num;
        array_A[num]++;
    }
    string ans;
    for(int i = 0; i < M; i++){
        long num;
        cin >> num;
        ans += to_string(array_A[num]) + " ";
    }
    ans.pop_back();
    cout << ans << endl;
}
0