結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー miya145592miya145592
提出日時 2023-05-06 02:33:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 324 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 123,392 KB
最終ジャッジ日時 2024-05-02 20:19:36
合計ジャッジ時間 12,644 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,712 KB
testcase_01 AC 36 ms
51,584 KB
testcase_02 AC 35 ms
51,712 KB
testcase_03 AC 36 ms
52,352 KB
testcase_04 AC 100 ms
77,312 KB
testcase_05 AC 103 ms
77,184 KB
testcase_06 AC 95 ms
77,440 KB
testcase_07 AC 93 ms
77,696 KB
testcase_08 AC 90 ms
77,440 KB
testcase_09 AC 91 ms
77,568 KB
testcase_10 AC 96 ms
77,440 KB
testcase_11 AC 93 ms
77,184 KB
testcase_12 AC 38 ms
52,224 KB
testcase_13 AC 38 ms
52,608 KB
testcase_14 AC 38 ms
52,096 KB
testcase_15 AC 42 ms
52,224 KB
testcase_16 AC 40 ms
52,480 KB
testcase_17 AC 39 ms
52,608 KB
testcase_18 AC 39 ms
52,480 KB
testcase_19 AC 38 ms
52,352 KB
testcase_20 AC 39 ms
52,864 KB
testcase_21 AC 39 ms
52,352 KB
testcase_22 AC 37 ms
52,736 KB
testcase_23 AC 36 ms
52,480 KB
testcase_24 AC 37 ms
52,736 KB
testcase_25 AC 38 ms
52,608 KB
testcase_26 AC 37 ms
52,224 KB
testcase_27 AC 38 ms
52,608 KB
testcase_28 AC 37 ms
52,096 KB
testcase_29 AC 39 ms
52,736 KB
testcase_30 AC 37 ms
52,480 KB
testcase_31 AC 37 ms
52,224 KB
testcase_32 AC 198 ms
95,232 KB
testcase_33 AC 165 ms
88,832 KB
testcase_34 AC 249 ms
104,192 KB
testcase_35 AC 227 ms
100,736 KB
testcase_36 AC 250 ms
104,576 KB
testcase_37 AC 171 ms
91,776 KB
testcase_38 AC 170 ms
91,392 KB
testcase_39 AC 254 ms
106,880 KB
testcase_40 AC 208 ms
97,536 KB
testcase_41 AC 241 ms
105,856 KB
testcase_42 AC 181 ms
94,464 KB
testcase_43 AC 200 ms
96,640 KB
testcase_44 AC 238 ms
97,664 KB
testcase_45 AC 198 ms
95,232 KB
testcase_46 AC 263 ms
108,544 KB
testcase_47 AC 140 ms
84,864 KB
testcase_48 AC 182 ms
94,592 KB
testcase_49 AC 267 ms
105,216 KB
testcase_50 AC 181 ms
93,824 KB
testcase_51 AC 167 ms
91,008 KB
testcase_52 AC 295 ms
114,304 KB
testcase_53 AC 289 ms
114,304 KB
testcase_54 AC 318 ms
123,392 KB
testcase_55 AC 324 ms
123,264 KB
testcase_56 AC 320 ms
123,264 KB
testcase_57 AC 316 ms
123,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
SA = [input().split() for _ in range(N)]
TB = [input().split() for _ in range(M)]
D = dict()
for s, a in SA:
    D[s] = int(a)
for t, b in TB:
    D[t] = int(b)
for k in sorted(D.keys()):
    print(k, D[k])
0