結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー harurunharurun
提出日時 2021-11-15 00:09:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 431 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 99,892 KB
最終ジャッジ日時 2023-10-20 07:38:55
合計ジャッジ時間 12,146 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,464 KB
testcase_01 AC 38 ms
53,464 KB
testcase_02 AC 41 ms
53,464 KB
testcase_03 AC 42 ms
55,512 KB
testcase_04 AC 102 ms
77,044 KB
testcase_05 AC 101 ms
77,064 KB
testcase_06 AC 94 ms
76,904 KB
testcase_07 AC 95 ms
76,888 KB
testcase_08 AC 92 ms
77,084 KB
testcase_09 AC 93 ms
77,144 KB
testcase_10 AC 94 ms
77,008 KB
testcase_11 AC 89 ms
77,092 KB
testcase_12 AC 41 ms
55,516 KB
testcase_13 AC 43 ms
55,516 KB
testcase_14 AC 44 ms
55,516 KB
testcase_15 AC 42 ms
55,516 KB
testcase_16 AC 46 ms
55,516 KB
testcase_17 AC 42 ms
55,516 KB
testcase_18 AC 42 ms
55,516 KB
testcase_19 AC 40 ms
55,516 KB
testcase_20 AC 41 ms
55,516 KB
testcase_21 AC 41 ms
55,516 KB
testcase_22 AC 41 ms
55,516 KB
testcase_23 AC 40 ms
55,516 KB
testcase_24 AC 41 ms
55,516 KB
testcase_25 AC 41 ms
55,516 KB
testcase_26 AC 40 ms
55,516 KB
testcase_27 AC 41 ms
55,516 KB
testcase_28 AC 39 ms
55,516 KB
testcase_29 AC 41 ms
55,516 KB
testcase_30 AC 42 ms
55,516 KB
testcase_31 AC 41 ms
55,516 KB
testcase_32 AC 220 ms
86,640 KB
testcase_33 AC 176 ms
84,164 KB
testcase_34 AC 276 ms
88,568 KB
testcase_35 AC 255 ms
86,368 KB
testcase_36 AC 277 ms
88,184 KB
testcase_37 AC 198 ms
84,164 KB
testcase_38 AC 207 ms
84,692 KB
testcase_39 AC 301 ms
89,712 KB
testcase_40 AC 227 ms
86,012 KB
testcase_41 AC 289 ms
89,936 KB
testcase_42 AC 212 ms
84,692 KB
testcase_43 AC 218 ms
87,336 KB
testcase_44 AC 259 ms
87,620 KB
testcase_45 AC 217 ms
84,692 KB
testcase_46 AC 312 ms
91,028 KB
testcase_47 AC 146 ms
81,320 KB
testcase_48 AC 212 ms
85,828 KB
testcase_49 AC 313 ms
90,264 KB
testcase_50 AC 204 ms
83,712 KB
testcase_51 AC 191 ms
82,844 KB
testcase_52 AC 339 ms
93,848 KB
testcase_53 AC 346 ms
93,820 KB
testcase_54 AC 430 ms
99,892 KB
testcase_55 AC 431 ms
99,884 KB
testcase_56 AC 426 ms
99,884 KB
testcase_57 AC 428 ms
99,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
def main():
  N,M=map(int,input().split())
  d=Counter()
  for i in range(N):
    S,A=input().split()
    d[S]=int(A)
  for i in range(M):
    T,B=input().split()
    d[T]=int(B)
  ans=sorted(list(d.items()),key=lambda x:x[0])
  for user,rate in ans:
    print(user,rate)
  return

main()
0