結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-07-04 20:58:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 618 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 11,356 KB
実行使用メモリ 33,456 KB
最終ジャッジ日時 2023-09-25 20:18:03
合計ジャッジ時間 18,973 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,016 KB
testcase_01 AC 79 ms
15,276 KB
testcase_02 AC 77 ms
15,168 KB
testcase_03 AC 78 ms
15,216 KB
testcase_04 AC 85 ms
15,444 KB
testcase_05 AC 86 ms
15,396 KB
testcase_06 AC 86 ms
15,400 KB
testcase_07 AC 89 ms
15,424 KB
testcase_08 AC 89 ms
15,556 KB
testcase_09 AC 91 ms
15,468 KB
testcase_10 AC 91 ms
15,424 KB
testcase_11 AC 89 ms
15,440 KB
testcase_12 AC 80 ms
15,268 KB
testcase_13 AC 80 ms
15,024 KB
testcase_14 AC 77 ms
15,244 KB
testcase_15 AC 80 ms
15,116 KB
testcase_16 AC 80 ms
15,060 KB
testcase_17 AC 81 ms
15,060 KB
testcase_18 AC 82 ms
15,064 KB
testcase_19 AC 80 ms
15,228 KB
testcase_20 AC 82 ms
15,032 KB
testcase_21 AC 82 ms
15,176 KB
testcase_22 AC 84 ms
15,240 KB
testcase_23 AC 83 ms
15,020 KB
testcase_24 AC 83 ms
15,180 KB
testcase_25 AC 82 ms
15,188 KB
testcase_26 AC 78 ms
15,036 KB
testcase_27 AC 80 ms
15,172 KB
testcase_28 AC 79 ms
15,060 KB
testcase_29 AC 80 ms
15,180 KB
testcase_30 AC 78 ms
15,172 KB
testcase_31 AC 81 ms
15,024 KB
testcase_32 AC 261 ms
21,660 KB
testcase_33 AC 207 ms
20,552 KB
testcase_34 AC 339 ms
23,820 KB
testcase_35 AC 302 ms
21,916 KB
testcase_36 AC 354 ms
24,004 KB
testcase_37 AC 225 ms
20,516 KB
testcase_38 AC 223 ms
21,384 KB
testcase_39 AC 368 ms
23,952 KB
testcase_40 AC 277 ms
21,736 KB
testcase_41 AC 354 ms
23,708 KB
testcase_42 AC 258 ms
21,672 KB
testcase_43 AC 277 ms
21,728 KB
testcase_44 AC 324 ms
23,776 KB
testcase_45 AC 259 ms
21,536 KB
testcase_46 AC 397 ms
24,980 KB
testcase_47 AC 155 ms
17,580 KB
testcase_48 AC 251 ms
21,696 KB
testcase_49 AC 401 ms
24,992 KB
testcase_50 AC 237 ms
20,812 KB
testcase_51 AC 216 ms
20,512 KB
testcase_52 AC 434 ms
27,240 KB
testcase_53 AC 433 ms
27,280 KB
testcase_54 AC 618 ms
33,392 KB
testcase_55 AC 599 ms
33,420 KB
testcase_56 AC 602 ms
33,456 KB
testcase_57 AC 610 ms
33,452 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

hs={}
n,m=gets.split(" ").map{|e| e.to_i}
(n+m).times{
	name,score=gets.chomp.split(" ")
	hs[name]=score.to_i
}
hs.keys.sort.each{|k|
	puts [k,hs[k]].join(" ")
}
0