結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー nebukuro09nebukuro09
提出日時 2018-12-17 22:01:21
言語 D
(dmd 2.106.1)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 508 bytes
コンパイル時間 1,022 ms
コンパイル使用メモリ 109,788 KB
実行使用メモリ 18,464 KB
最終ジャッジ日時 2023-09-03 21:43:34
合計ジャッジ時間 9,435 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 87 ms
17,460 KB
testcase_04 AC 90 ms
17,640 KB
testcase_05 AC 89 ms
17,136 KB
testcase_06 AC 90 ms
18,168 KB
testcase_07 AC 87 ms
16,868 KB
testcase_08 AC 89 ms
18,464 KB
testcase_09 AC 89 ms
17,632 KB
testcase_10 AC 87 ms
17,704 KB
testcase_11 AC 88 ms
17,868 KB
testcase_12 AC 88 ms
17,320 KB
testcase_13 AC 88 ms
17,876 KB
testcase_14 AC 86 ms
18,352 KB
testcase_15 AC 86 ms
17,612 KB
testcase_16 AC 85 ms
17,524 KB
testcase_17 AC 84 ms
17,344 KB
testcase_18 AC 83 ms
16,748 KB
testcase_19 AC 82 ms
16,964 KB
testcase_20 AC 80 ms
15,912 KB
testcase_21 AC 81 ms
17,264 KB
testcase_22 AC 82 ms
17,820 KB
testcase_23 AC 81 ms
17,376 KB
testcase_24 AC 81 ms
17,468 KB
testcase_25 AC 81 ms
17,440 KB
testcase_26 AC 79 ms
16,724 KB
testcase_27 AC 78 ms
17,244 KB
testcase_28 AC 78 ms
17,020 KB
testcase_29 AC 76 ms
16,644 KB
testcase_30 AC 79 ms
17,756 KB
testcase_31 AC 80 ms
17,312 KB
testcase_32 AC 80 ms
18,236 KB
testcase_33 AC 77 ms
18,232 KB
testcase_34 AC 77 ms
17,376 KB
testcase_35 AC 77 ms
17,156 KB
testcase_36 AC 76 ms
17,540 KB
testcase_37 AC 74 ms
18,332 KB
testcase_38 AC 74 ms
16,948 KB
testcase_39 AC 75 ms
17,796 KB
testcase_40 AC 79 ms
17,788 KB
testcase_41 AC 1 ms
4,376 KB
testcase_42 AC 1 ms
4,380 KB
testcase_43 AC 2 ms
4,380 KB
testcase_44 AC 7 ms
4,384 KB
testcase_45 AC 7 ms
4,376 KB
testcase_46 AC 7 ms
4,384 KB
testcase_47 AC 70 ms
14,060 KB
testcase_48 AC 69 ms
13,892 KB
testcase_49 AC 69 ms
13,940 KB
testcase_50 AC 83 ms
14,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;

void main() {
    auto s = readln.split.map!(to!int);
    auto N = s[0];
    auto M = s[1];
    auto A = readln.split.map!(to!long).array;
    auto B = readln.split.map!(to!long).array;

    int[long] mp;
    foreach (a; A) mp[a] += 1;
    B.map!(b => b in mp ? mp[b] : 0).map!(to!string).join(" ").writeln;
}
0