結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-12-24 00:02:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 558 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 499 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 103,664 KB
最終ジャッジ日時 2023-10-20 07:43:21
合計ジャッジ時間 14,150 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,384 KB
testcase_01 AC 35 ms
53,384 KB
testcase_02 AC 35 ms
53,384 KB
testcase_03 AC 36 ms
53,384 KB
testcase_04 AC 99 ms
76,836 KB
testcase_05 AC 100 ms
76,836 KB
testcase_06 AC 91 ms
76,496 KB
testcase_07 AC 91 ms
76,684 KB
testcase_08 AC 87 ms
76,656 KB
testcase_09 AC 86 ms
76,588 KB
testcase_10 AC 92 ms
76,576 KB
testcase_11 AC 86 ms
76,660 KB
testcase_12 AC 37 ms
53,388 KB
testcase_13 AC 37 ms
53,388 KB
testcase_14 AC 36 ms
53,388 KB
testcase_15 AC 36 ms
53,388 KB
testcase_16 AC 39 ms
53,388 KB
testcase_17 AC 40 ms
53,388 KB
testcase_18 AC 38 ms
53,388 KB
testcase_19 AC 41 ms
53,388 KB
testcase_20 AC 38 ms
53,388 KB
testcase_21 AC 37 ms
53,388 KB
testcase_22 AC 41 ms
53,388 KB
testcase_23 AC 37 ms
53,388 KB
testcase_24 AC 39 ms
53,388 KB
testcase_25 AC 42 ms
53,388 KB
testcase_26 AC 37 ms
53,388 KB
testcase_27 AC 38 ms
53,388 KB
testcase_28 AC 36 ms
53,388 KB
testcase_29 AC 37 ms
53,388 KB
testcase_30 AC 38 ms
53,388 KB
testcase_31 AC 41 ms
53,388 KB
testcase_32 AC 255 ms
86,812 KB
testcase_33 AC 209 ms
82,756 KB
testcase_34 AC 337 ms
89,776 KB
testcase_35 AC 303 ms
87,384 KB
testcase_36 AC 348 ms
89,476 KB
testcase_37 AC 228 ms
83,364 KB
testcase_38 AC 225 ms
84,604 KB
testcase_39 AC 368 ms
91,136 KB
testcase_40 AC 287 ms
85,684 KB
testcase_41 AC 340 ms
91,388 KB
testcase_42 AC 258 ms
84,888 KB
testcase_43 AC 271 ms
86,456 KB
testcase_44 AC 317 ms
88,948 KB
testcase_45 AC 256 ms
84,956 KB
testcase_46 AC 378 ms
92,012 KB
testcase_47 AC 161 ms
80,664 KB
testcase_48 AC 265 ms
86,108 KB
testcase_49 AC 398 ms
91,968 KB
testcase_50 AC 241 ms
84,316 KB
testcase_51 AC 223 ms
82,756 KB
testcase_52 AC 432 ms
95,880 KB
testcase_53 AC 417 ms
95,876 KB
testcase_54 AC 547 ms
103,652 KB
testcase_55 AC 558 ms
103,656 KB
testcase_56 AC 546 ms
103,664 KB
testcase_57 AC 553 ms
103,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())

dic = {}

for i in range(N):

    S,A = input().split()
    A = int(A)

    dic[S] = A

for i in range(M):

    S,A = input().split()
    A = int(A)

    dic[S] = A


SA = []

for i in dic:
    SA.append( (i,dic[i]) )

SA.sort()

for i in SA:

    print (*i)
0