結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー 👑 KazunKazun
提出日時 2021-12-24 00:07:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 354 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 96,340 KB
最終ジャッジ日時 2023-10-20 07:45:05
合計ジャッジ時間 11,197 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,372 KB
testcase_01 AC 39 ms
53,372 KB
testcase_02 AC 39 ms
53,372 KB
testcase_03 AC 41 ms
55,420 KB
testcase_04 AC 102 ms
77,012 KB
testcase_05 AC 100 ms
77,012 KB
testcase_06 AC 94 ms
76,748 KB
testcase_07 AC 93 ms
76,840 KB
testcase_08 AC 92 ms
76,760 KB
testcase_09 AC 92 ms
76,828 KB
testcase_10 AC 96 ms
76,880 KB
testcase_11 AC 90 ms
76,772 KB
testcase_12 AC 40 ms
55,420 KB
testcase_13 AC 42 ms
55,420 KB
testcase_14 AC 40 ms
55,420 KB
testcase_15 AC 40 ms
55,420 KB
testcase_16 AC 42 ms
55,420 KB
testcase_17 AC 41 ms
55,420 KB
testcase_18 AC 41 ms
55,420 KB
testcase_19 AC 41 ms
55,420 KB
testcase_20 AC 42 ms
55,420 KB
testcase_21 AC 41 ms
55,420 KB
testcase_22 AC 43 ms
55,420 KB
testcase_23 AC 42 ms
55,420 KB
testcase_24 AC 42 ms
55,420 KB
testcase_25 AC 43 ms
55,420 KB
testcase_26 AC 41 ms
55,420 KB
testcase_27 AC 42 ms
55,420 KB
testcase_28 AC 41 ms
55,420 KB
testcase_29 AC 42 ms
55,420 KB
testcase_30 AC 40 ms
55,420 KB
testcase_31 AC 41 ms
55,420 KB
testcase_32 AC 190 ms
85,540 KB
testcase_33 AC 160 ms
84,028 KB
testcase_34 AC 245 ms
86,928 KB
testcase_35 AC 226 ms
84,824 KB
testcase_36 AC 243 ms
87,200 KB
testcase_37 AC 172 ms
84,028 KB
testcase_38 AC 171 ms
83,764 KB
testcase_39 AC 263 ms
87,780 KB
testcase_40 AC 201 ms
85,880 KB
testcase_41 AC 260 ms
88,036 KB
testcase_42 AC 188 ms
85,088 KB
testcase_43 AC 195 ms
87,200 KB
testcase_44 AC 240 ms
87,200 KB
testcase_45 AC 185 ms
84,560 KB
testcase_46 AC 275 ms
89,040 KB
testcase_47 AC 135 ms
80,536 KB
testcase_48 AC 182 ms
84,440 KB
testcase_49 AC 272 ms
89,040 KB
testcase_50 AC 181 ms
82,876 KB
testcase_51 AC 173 ms
82,708 KB
testcase_52 AC 293 ms
91,748 KB
testcase_53 AC 304 ms
91,728 KB
testcase_54 AC 352 ms
96,340 KB
testcase_55 AC 347 ms
96,336 KB
testcase_56 AC 354 ms
96,332 KB
testcase_57 AC 354 ms
96,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

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

Rate=defaultdict(int)
for _ in range(N):
    S,A=input().split(); A=int(A)
    Rate[S]=A

for _ in range(M):
    T,B=input().split(); B=int(B)
    Rate[T]=B

for U in sorted(Rate.keys()):
    print(U,Rate[U])
0