結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー ysys
提出日時 2021-12-26 18:37:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 306 ms / 2,000 ms
コード長 353 bytes
コンパイル時間 659 ms
コンパイル使用メモリ 81,532 KB
実行使用メモリ 95,988 KB
最終ジャッジ日時 2023-10-24 13:37:02
合計ジャッジ時間 12,822 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,180 KB
testcase_01 AC 38 ms
53,180 KB
testcase_02 AC 38 ms
53,180 KB
testcase_03 AC 41 ms
55,228 KB
testcase_04 AC 98 ms
76,796 KB
testcase_05 AC 98 ms
76,812 KB
testcase_06 AC 93 ms
76,568 KB
testcase_07 AC 90 ms
76,672 KB
testcase_08 AC 85 ms
76,572 KB
testcase_09 AC 86 ms
76,628 KB
testcase_10 AC 91 ms
76,592 KB
testcase_11 AC 88 ms
76,580 KB
testcase_12 AC 41 ms
55,248 KB
testcase_13 AC 43 ms
55,248 KB
testcase_14 AC 40 ms
55,248 KB
testcase_15 AC 40 ms
55,248 KB
testcase_16 AC 41 ms
55,248 KB
testcase_17 AC 41 ms
55,248 KB
testcase_18 AC 42 ms
55,248 KB
testcase_19 AC 41 ms
55,248 KB
testcase_20 AC 42 ms
55,248 KB
testcase_21 AC 41 ms
55,248 KB
testcase_22 AC 42 ms
55,248 KB
testcase_23 AC 41 ms
55,248 KB
testcase_24 AC 41 ms
55,248 KB
testcase_25 AC 41 ms
55,248 KB
testcase_26 AC 40 ms
55,248 KB
testcase_27 AC 40 ms
55,248 KB
testcase_28 AC 43 ms
55,248 KB
testcase_29 AC 41 ms
55,248 KB
testcase_30 AC 41 ms
55,248 KB
testcase_31 AC 40 ms
55,248 KB
testcase_32 AC 174 ms
85,240 KB
testcase_33 AC 147 ms
83,872 KB
testcase_34 AC 222 ms
86,712 KB
testcase_35 AC 204 ms
85,004 KB
testcase_36 AC 219 ms
87,172 KB
testcase_37 AC 156 ms
83,872 KB
testcase_38 AC 152 ms
83,608 KB
testcase_39 AC 234 ms
88,016 KB
testcase_40 AC 181 ms
85,724 KB
testcase_41 AC 226 ms
87,808 KB
testcase_42 AC 172 ms
84,932 KB
testcase_43 AC 174 ms
85,988 KB
testcase_44 AC 206 ms
87,172 KB
testcase_45 AC 178 ms
84,668 KB
testcase_46 AC 254 ms
88,864 KB
testcase_47 AC 129 ms
81,344 KB
testcase_48 AC 168 ms
84,724 KB
testcase_49 AC 246 ms
88,696 KB
testcase_50 AC 166 ms
82,900 KB
testcase_51 AC 153 ms
83,344 KB
testcase_52 AC 267 ms
91,512 KB
testcase_53 AC 275 ms
91,500 KB
testcase_54 AC 304 ms
95,968 KB
testcase_55 AC 306 ms
95,980 KB
testcase_56 AC 299 ms
95,956 KB
testcase_57 AC 300 ms
95,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N, M = map(int, input().split())
user = defaultdict(int)
for i in range(N):
  s, a = input().split()
  user[s] = int(a)

for i in range(M):
  t, b = input().split()
  user[t] = int(b)

user_list = list(user.keys())
user_list.sort()
for i in range(len(user_list)):
  print(user_list[i] + ' ' + str(user[user_list[i]]))
0