結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー tnodinotnodino
提出日時 2022-06-07 18:20:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 527 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 516 ms
コンパイル使用メモリ 11,788 KB
実行使用メモリ 35,280 KB
最終ジャッジ日時 2023-10-21 03:51:19
合計ジャッジ時間 13,340 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,120 KB
testcase_01 AC 26 ms
10,120 KB
testcase_02 AC 26 ms
10,120 KB
testcase_03 AC 28 ms
10,128 KB
testcase_04 AC 36 ms
10,584 KB
testcase_05 AC 33 ms
10,584 KB
testcase_06 AC 32 ms
10,628 KB
testcase_07 AC 34 ms
10,648 KB
testcase_08 AC 35 ms
10,668 KB
testcase_09 AC 39 ms
10,764 KB
testcase_10 AC 37 ms
10,732 KB
testcase_11 AC 36 ms
10,688 KB
testcase_12 AC 27 ms
10,124 KB
testcase_13 AC 25 ms
10,132 KB
testcase_14 AC 27 ms
10,128 KB
testcase_15 AC 27 ms
10,124 KB
testcase_16 AC 25 ms
10,128 KB
testcase_17 AC 24 ms
10,128 KB
testcase_18 AC 25 ms
10,128 KB
testcase_19 AC 26 ms
10,124 KB
testcase_20 AC 26 ms
10,132 KB
testcase_21 AC 27 ms
10,128 KB
testcase_22 AC 28 ms
10,128 KB
testcase_23 AC 27 ms
10,128 KB
testcase_24 AC 27 ms
10,128 KB
testcase_25 AC 26 ms
10,128 KB
testcase_26 AC 27 ms
10,128 KB
testcase_27 AC 28 ms
10,132 KB
testcase_28 AC 28 ms
10,124 KB
testcase_29 AC 29 ms
10,132 KB
testcase_30 AC 29 ms
10,124 KB
testcase_31 AC 28 ms
10,128 KB
testcase_32 AC 220 ms
18,408 KB
testcase_33 AC 151 ms
16,824 KB
testcase_34 AC 307 ms
22,112 KB
testcase_35 AC 277 ms
20,792 KB
testcase_36 AC 330 ms
22,900 KB
testcase_37 AC 181 ms
17,348 KB
testcase_38 AC 177 ms
17,616 KB
testcase_39 AC 358 ms
22,904 KB
testcase_40 AC 234 ms
18,932 KB
testcase_41 AC 326 ms
22,108 KB
testcase_42 AC 211 ms
18,404 KB
testcase_43 AC 225 ms
19,460 KB
testcase_44 AC 299 ms
22,108 KB
testcase_45 AC 225 ms
18,408 KB
testcase_46 AC 368 ms
23,428 KB
testcase_47 AC 107 ms
13,856 KB
testcase_48 AC 209 ms
18,936 KB
testcase_49 AC 396 ms
23,692 KB
testcase_50 AC 204 ms
17,348 KB
testcase_51 AC 173 ms
17,084 KB
testcase_52 AC 414 ms
25,916 KB
testcase_53 AC 427 ms
25,916 KB
testcase_54 AC 527 ms
35,276 KB
testcase_55 AC 521 ms
35,276 KB
testcase_56 AC 522 ms
35,276 KB
testcase_57 AC 524 ms
35,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
dic = {}
for _ in range(N):
    S,A = input().split()
    dic[S] = A
for _ in range(M):
    T,B = input().split()
    dic[T] = B
ans = []
for k,v in dic.items():
    ans.append((k, v))
ans.sort()
for k,v in ans:
    print(k, v)
0