結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー harurunharurun
提出日時 2021-11-15 00:58:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 476 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,848 KB
実行使用メモリ 33,948 KB
最終ジャッジ日時 2023-10-20 07:37:15
合計ジャッジ時間 12,304 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,044 KB
testcase_01 AC 31 ms
10,044 KB
testcase_02 AC 30 ms
10,044 KB
testcase_03 AC 30 ms
10,048 KB
testcase_04 AC 36 ms
10,488 KB
testcase_05 AC 36 ms
10,488 KB
testcase_06 AC 38 ms
10,504 KB
testcase_07 AC 38 ms
10,516 KB
testcase_08 AC 37 ms
10,544 KB
testcase_09 AC 43 ms
10,624 KB
testcase_10 AC 39 ms
10,596 KB
testcase_11 AC 37 ms
10,544 KB
testcase_12 AC 30 ms
10,048 KB
testcase_13 AC 28 ms
10,056 KB
testcase_14 AC 29 ms
10,052 KB
testcase_15 AC 28 ms
10,048 KB
testcase_16 AC 30 ms
10,056 KB
testcase_17 AC 28 ms
10,052 KB
testcase_18 AC 29 ms
10,052 KB
testcase_19 AC 30 ms
10,048 KB
testcase_20 AC 29 ms
10,060 KB
testcase_21 AC 28 ms
10,052 KB
testcase_22 AC 28 ms
10,052 KB
testcase_23 AC 27 ms
10,052 KB
testcase_24 AC 28 ms
10,056 KB
testcase_25 AC 28 ms
10,056 KB
testcase_26 AC 29 ms
10,052 KB
testcase_27 AC 28 ms
10,056 KB
testcase_28 AC 27 ms
10,048 KB
testcase_29 AC 28 ms
10,056 KB
testcase_30 AC 29 ms
10,052 KB
testcase_31 AC 27 ms
10,048 KB
testcase_32 AC 209 ms
17,900 KB
testcase_33 AC 154 ms
16,296 KB
testcase_34 AC 304 ms
21,424 KB
testcase_35 AC 263 ms
20,120 KB
testcase_36 AC 300 ms
22,184 KB
testcase_37 AC 169 ms
16,820 KB
testcase_38 AC 164 ms
17,108 KB
testcase_39 AC 324 ms
22,204 KB
testcase_40 AC 221 ms
18,408 KB
testcase_41 AC 309 ms
21,412 KB
testcase_42 AC 201 ms
17,880 KB
testcase_43 AC 213 ms
18,936 KB
testcase_44 AC 279 ms
21,392 KB
testcase_45 AC 211 ms
17,880 KB
testcase_46 AC 351 ms
22,708 KB
testcase_47 AC 106 ms
13,688 KB
testcase_48 AC 207 ms
18,428 KB
testcase_49 AC 368 ms
22,976 KB
testcase_50 AC 201 ms
17,088 KB
testcase_51 AC 176 ms
16,560 KB
testcase_52 AC 396 ms
24,932 KB
testcase_53 AC 402 ms
24,936 KB
testcase_54 AC 476 ms
33,948 KB
testcase_55 AC 471 ms
33,944 KB
testcase_56 AC 473 ms
33,948 KB
testcase_57 AC 476 ms
33,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  N,M=map(int,input().split())
  d={}
  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