結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー 👑 H20H20
提出日時 2021-12-24 00:05:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 459 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 81,684 KB
実行使用メモリ 110,452 KB
最終ジャッジ日時 2023-10-20 07:45:37
合計ジャッジ時間 12,603 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,488 KB
testcase_01 AC 41 ms
53,488 KB
testcase_02 AC 42 ms
53,488 KB
testcase_03 AC 41 ms
55,536 KB
testcase_04 AC 90 ms
76,932 KB
testcase_05 AC 91 ms
76,924 KB
testcase_06 AC 95 ms
77,032 KB
testcase_07 AC 96 ms
77,060 KB
testcase_08 AC 94 ms
77,084 KB
testcase_09 AC 94 ms
77,236 KB
testcase_10 AC 94 ms
77,200 KB
testcase_11 AC 91 ms
77,152 KB
testcase_12 AC 42 ms
55,536 KB
testcase_13 AC 42 ms
55,536 KB
testcase_14 AC 40 ms
55,536 KB
testcase_15 AC 41 ms
55,536 KB
testcase_16 AC 42 ms
55,536 KB
testcase_17 AC 41 ms
55,536 KB
testcase_18 AC 41 ms
55,536 KB
testcase_19 AC 41 ms
55,536 KB
testcase_20 AC 42 ms
55,536 KB
testcase_21 AC 41 ms
55,536 KB
testcase_22 AC 41 ms
55,536 KB
testcase_23 AC 41 ms
55,536 KB
testcase_24 AC 42 ms
55,536 KB
testcase_25 AC 44 ms
55,536 KB
testcase_26 AC 41 ms
55,536 KB
testcase_27 AC 42 ms
55,536 KB
testcase_28 AC 41 ms
55,536 KB
testcase_29 AC 42 ms
55,536 KB
testcase_30 AC 40 ms
55,536 KB
testcase_31 AC 41 ms
55,536 KB
testcase_32 AC 225 ms
89,728 KB
testcase_33 AC 192 ms
88,132 KB
testcase_34 AC 281 ms
92,980 KB
testcase_35 AC 250 ms
91,176 KB
testcase_36 AC 302 ms
94,252 KB
testcase_37 AC 192 ms
85,524 KB
testcase_38 AC 192 ms
86,492 KB
testcase_39 AC 304 ms
95,640 KB
testcase_40 AC 235 ms
89,260 KB
testcase_41 AC 292 ms
94,944 KB
testcase_42 AC 213 ms
87,892 KB
testcase_43 AC 226 ms
89,688 KB
testcase_44 AC 273 ms
92,976 KB
testcase_45 AC 220 ms
88,080 KB
testcase_46 AC 323 ms
97,008 KB
testcase_47 AC 144 ms
82,848 KB
testcase_48 AC 213 ms
88,232 KB
testcase_49 AC 329 ms
95,648 KB
testcase_50 AC 204 ms
86,588 KB
testcase_51 AC 191 ms
84,892 KB
testcase_52 AC 361 ms
101,720 KB
testcase_53 AC 371 ms
101,708 KB
testcase_54 AC 456 ms
110,448 KB
testcase_55 AC 450 ms
110,452 KB
testcase_56 AC 459 ms
110,448 KB
testcase_57 AC 459 ms
110,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
D = collections.defaultdict()
N,M = map(int, input().split())
for _ in range(N+M):
    s,a = input().split()
    D[s] = int(a)
L = []
for k,v in D.items():
    L.append([k,v])
L = sorted(L, key=lambda x: x[0])
for l in L:
    print(*l)
0