結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー hiragnhiragn
提出日時 2022-11-25 00:33:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 473 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 25,744 KB
最終ジャッジ日時 2024-04-08 21:34:37
合計ジャッジ時間 14,294 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,856 KB
testcase_01 AC 31 ms
9,856 KB
testcase_02 AC 30 ms
9,856 KB
testcase_03 AC 32 ms
9,856 KB
testcase_04 AC 40 ms
10,240 KB
testcase_05 AC 39 ms
10,240 KB
testcase_06 AC 41 ms
10,240 KB
testcase_07 AC 40 ms
10,240 KB
testcase_08 AC 40 ms
10,240 KB
testcase_09 AC 41 ms
10,368 KB
testcase_10 AC 41 ms
10,240 KB
testcase_11 AC 38 ms
10,240 KB
testcase_12 AC 30 ms
9,856 KB
testcase_13 AC 32 ms
9,856 KB
testcase_14 AC 31 ms
9,856 KB
testcase_15 AC 31 ms
9,856 KB
testcase_16 AC 31 ms
9,856 KB
testcase_17 AC 31 ms
9,856 KB
testcase_18 AC 32 ms
9,856 KB
testcase_19 AC 32 ms
9,856 KB
testcase_20 AC 30 ms
9,856 KB
testcase_21 AC 31 ms
9,856 KB
testcase_22 AC 31 ms
9,856 KB
testcase_23 AC 29 ms
9,856 KB
testcase_24 AC 30 ms
9,856 KB
testcase_25 AC 29 ms
9,856 KB
testcase_26 AC 30 ms
9,856 KB
testcase_27 AC 31 ms
9,856 KB
testcase_28 AC 31 ms
9,856 KB
testcase_29 AC 30 ms
9,856 KB
testcase_30 AC 31 ms
9,856 KB
testcase_31 AC 30 ms
9,856 KB
testcase_32 AC 218 ms
14,736 KB
testcase_33 AC 158 ms
13,948 KB
testcase_34 AC 316 ms
17,216 KB
testcase_35 AC 278 ms
17,016 KB
testcase_36 AC 312 ms
17,572 KB
testcase_37 AC 180 ms
14,200 KB
testcase_38 AC 170 ms
14,476 KB
testcase_39 AC 344 ms
17,588 KB
testcase_40 AC 233 ms
15,224 KB
testcase_41 AC 323 ms
17,208 KB
testcase_42 AC 216 ms
14,840 KB
testcase_43 AC 220 ms
15,352 KB
testcase_44 AC 290 ms
17,188 KB
testcase_45 AC 220 ms
14,844 KB
testcase_46 AC 361 ms
17,952 KB
testcase_47 AC 109 ms
12,140 KB
testcase_48 AC 200 ms
15,116 KB
testcase_49 AC 370 ms
18,084 KB
testcase_50 AC 206 ms
14,328 KB
testcase_51 AC 185 ms
14,072 KB
testcase_52 AC 409 ms
19,616 KB
testcase_53 AC 403 ms
19,620 KB
testcase_54 AC 467 ms
25,744 KB
testcase_55 AC 468 ms
25,740 KB
testcase_56 AC 473 ms
25,744 KB
testcase_57 AC 463 ms
25,736 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