結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー kokatsukokatsu
提出日時 2021-12-24 19:06:49
言語 D
(dmd 2.107.1)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 3,035 ms
コンパイル使用メモリ 207,528 KB
実行使用メモリ 22,300 KB
最終ジャッジ日時 2023-09-04 15:33:24
合計ジャッジ時間 10,857 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 4 ms
4,380 KB
testcase_05 AC 6 ms
4,376 KB
testcase_06 AC 6 ms
4,380 KB
testcase_07 AC 6 ms
4,380 KB
testcase_08 AC 6 ms
4,380 KB
testcase_09 AC 7 ms
4,376 KB
testcase_10 AC 7 ms
4,380 KB
testcase_11 AC 6 ms
4,376 KB
testcase_12 AC 1 ms
4,384 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 1 ms
4,384 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 2 ms
4,380 KB
testcase_18 AC 2 ms
4,380 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 AC 2 ms
4,376 KB
testcase_25 AC 2 ms
4,384 KB
testcase_26 AC 2 ms
4,380 KB
testcase_27 AC 2 ms
4,380 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,380 KB
testcase_30 AC 2 ms
4,380 KB
testcase_31 AC 2 ms
4,380 KB
testcase_32 AC 96 ms
14,964 KB
testcase_33 AC 64 ms
12,604 KB
testcase_34 AC 146 ms
15,460 KB
testcase_35 AC 122 ms
15,244 KB
testcase_36 AC 139 ms
15,444 KB
testcase_37 AC 76 ms
13,476 KB
testcase_38 AC 72 ms
13,724 KB
testcase_39 AC 156 ms
15,456 KB
testcase_40 AC 104 ms
14,884 KB
testcase_41 AC 148 ms
15,280 KB
testcase_42 AC 93 ms
15,672 KB
testcase_43 AC 99 ms
14,448 KB
testcase_44 AC 124 ms
15,400 KB
testcase_45 AC 95 ms
14,448 KB
testcase_46 AC 162 ms
15,456 KB
testcase_47 AC 40 ms
8,536 KB
testcase_48 AC 87 ms
13,940 KB
testcase_49 AC 168 ms
15,496 KB
testcase_50 AC 90 ms
14,708 KB
testcase_51 AC 73 ms
14,424 KB
testcase_52 AC 185 ms
17,136 KB
testcase_53 AC 185 ms
17,152 KB
testcase_54 AC 219 ms
20,768 KB
testcase_55 AC 222 ms
20,428 KB
testcase_56 AC 222 ms
21,224 KB
testcase_57 AC 216 ms
22,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main() {
    int N, M;
    readf("%d %d\n", N, M);

    int[string] rate;

    foreach (_; 0 .. N+M) {
        auto input = readln.chomp.split;
        rate[input[0]] = input[1].to!int;
    }

    auto user = rate.keys;
    user.sort;

    foreach (u; user) {
        writeln(u, " ", rate[u]);
    }
}
0