結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー vwxyzvwxyz
提出日時 2022-09-06 16:03:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 324 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 25,568 KB
最終ジャッジ日時 2024-05-01 12:46:26
合計ジャッジ時間 10,405 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,752 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 25 ms
10,624 KB
testcase_03 AC 27 ms
10,752 KB
testcase_04 AC 32 ms
10,880 KB
testcase_05 AC 31 ms
10,880 KB
testcase_06 AC 31 ms
10,880 KB
testcase_07 AC 31 ms
10,880 KB
testcase_08 AC 32 ms
10,880 KB
testcase_09 AC 34 ms
11,008 KB
testcase_10 AC 32 ms
11,008 KB
testcase_11 AC 32 ms
10,880 KB
testcase_12 AC 28 ms
10,624 KB
testcase_13 AC 26 ms
10,624 KB
testcase_14 AC 26 ms
10,624 KB
testcase_15 AC 26 ms
10,624 KB
testcase_16 AC 26 ms
10,752 KB
testcase_17 AC 25 ms
10,624 KB
testcase_18 AC 25 ms
10,752 KB
testcase_19 AC 25 ms
10,624 KB
testcase_20 AC 28 ms
10,752 KB
testcase_21 AC 26 ms
10,752 KB
testcase_22 AC 26 ms
10,624 KB
testcase_23 AC 27 ms
10,624 KB
testcase_24 AC 27 ms
10,624 KB
testcase_25 AC 26 ms
10,624 KB
testcase_26 AC 28 ms
10,752 KB
testcase_27 AC 27 ms
10,624 KB
testcase_28 AC 26 ms
10,624 KB
testcase_29 AC 26 ms
10,624 KB
testcase_30 AC 27 ms
10,624 KB
testcase_31 AC 25 ms
10,624 KB
testcase_32 AC 170 ms
15,516 KB
testcase_33 AC 125 ms
14,596 KB
testcase_34 AC 229 ms
17,840 KB
testcase_35 AC 169 ms
17,416 KB
testcase_36 AC 198 ms
18,332 KB
testcase_37 AC 121 ms
14,980 KB
testcase_38 AC 111 ms
15,260 KB
testcase_39 AC 208 ms
18,340 KB
testcase_40 AC 147 ms
15,872 KB
testcase_41 AC 198 ms
17,920 KB
testcase_42 AC 148 ms
15,396 KB
testcase_43 AC 151 ms
15,876 KB
testcase_44 AC 185 ms
18,080 KB
testcase_45 AC 146 ms
15,500 KB
testcase_46 AC 235 ms
18,832 KB
testcase_47 AC 78 ms
12,864 KB
testcase_48 AC 138 ms
15,776 KB
testcase_49 AC 237 ms
18,844 KB
testcase_50 AC 133 ms
14,984 KB
testcase_51 AC 137 ms
14,732 KB
testcase_52 AC 258 ms
19,868 KB
testcase_53 AC 253 ms
19,748 KB
testcase_54 AC 324 ms
25,568 KB
testcase_55 AC 309 ms
25,568 KB
testcase_56 AC 314 ms
25,564 KB
testcase_57 AC 300 ms
25,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys
readline=sys.stdin.readline
write=sys.stdout.write
import itertools

N,M=map(int,readline().split())
rate={}
for n in range(N):
    S,A=readline().split()
    A=int(A)
    rate[S]=A
for m in range(M):
    T,B=readline().split()
    B=int(B)
    rate[T]=B
for S in sorted(list(rate.keys())):
    print(S,rate[S])
0