結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー hiragnhiragn
提出日時 2022-11-25 00:33:06
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 419 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 24,324 KB
最終ジャッジ日時 2023-07-24 17:27:35
合計ジャッジ時間 12,752 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,468 KB
testcase_01 AC 18 ms
8,472 KB
testcase_02 AC 18 ms
8,536 KB
testcase_03 AC 19 ms
8,596 KB
testcase_04 AC 27 ms
8,756 KB
testcase_05 AC 25 ms
8,820 KB
testcase_06 AC 28 ms
8,868 KB
testcase_07 AC 26 ms
8,928 KB
testcase_08 AC 27 ms
8,860 KB
testcase_09 AC 29 ms
8,976 KB
testcase_10 AC 29 ms
8,800 KB
testcase_11 AC 27 ms
8,868 KB
testcase_12 AC 17 ms
8,628 KB
testcase_13 AC 17 ms
8,488 KB
testcase_14 AC 17 ms
8,480 KB
testcase_15 AC 18 ms
8,432 KB
testcase_16 AC 19 ms
8,492 KB
testcase_17 AC 18 ms
8,436 KB
testcase_18 AC 18 ms
8,592 KB
testcase_19 AC 17 ms
8,484 KB
testcase_20 AC 18 ms
8,400 KB
testcase_21 AC 17 ms
8,548 KB
testcase_22 AC 18 ms
8,596 KB
testcase_23 AC 17 ms
8,484 KB
testcase_24 AC 18 ms
8,440 KB
testcase_25 AC 18 ms
8,544 KB
testcase_26 AC 19 ms
8,480 KB
testcase_27 AC 18 ms
8,600 KB
testcase_28 AC 18 ms
8,544 KB
testcase_29 AC 18 ms
8,404 KB
testcase_30 AC 18 ms
8,460 KB
testcase_31 AC 18 ms
8,536 KB
testcase_32 AC 191 ms
13,196 KB
testcase_33 AC 130 ms
12,376 KB
testcase_34 AC 279 ms
15,656 KB
testcase_35 AC 248 ms
15,544 KB
testcase_36 AC 274 ms
16,192 KB
testcase_37 AC 151 ms
12,680 KB
testcase_38 AC 149 ms
12,916 KB
testcase_39 AC 322 ms
16,304 KB
testcase_40 AC 200 ms
13,660 KB
testcase_41 AC 276 ms
15,636 KB
testcase_42 AC 186 ms
13,232 KB
testcase_43 AC 185 ms
13,608 KB
testcase_44 AC 234 ms
15,684 KB
testcase_45 AC 196 ms
13,200 KB
testcase_46 AC 341 ms
16,468 KB
testcase_47 AC 90 ms
10,616 KB
testcase_48 AC 177 ms
13,560 KB
testcase_49 AC 333 ms
16,548 KB
testcase_50 AC 175 ms
13,000 KB
testcase_51 AC 159 ms
12,648 KB
testcase_52 AC 359 ms
18,076 KB
testcase_53 AC 359 ms
18,160 KB
testcase_54 AC 406 ms
24,212 KB
testcase_55 AC 411 ms
24,216 KB
testcase_56 AC 405 ms
24,188 KB
testcase_57 AC 419 ms
24,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict


def main():
    n, m = map(int, input().split())
    d = defaultdict(int)

    for _ in range(n + m):
        a, b = input().split()
        d[a] = int(b)

    for x in sorted(d):
        print(x, d[x])


if __name__ == "__main__":
    main()
0