結果

問題 No.205 マージして辞書順最小
ユーザー eigh8_teigh8_t
提出日時 2015-08-08 03:02:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 98 ms / 5,000 ms
コード長 138 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 11,572 KB
実行使用メモリ 19,284 KB
最終ジャッジ日時 2023-09-25 06:41:19
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,276 KB
testcase_01 AC 82 ms
15,268 KB
testcase_02 AC 89 ms
15,532 KB
testcase_03 AC 88 ms
15,616 KB
testcase_04 AC 86 ms
15,492 KB
testcase_05 AC 87 ms
15,468 KB
testcase_06 AC 81 ms
15,100 KB
testcase_07 AC 92 ms
18,724 KB
testcase_08 AC 93 ms
18,612 KB
testcase_09 AC 94 ms
18,584 KB
testcase_10 AC 98 ms
19,284 KB
testcase_11 AC 96 ms
19,088 KB
testcase_12 AC 94 ms
18,856 KB
testcase_13 AC 91 ms
18,320 KB
testcase_14 AC 82 ms
15,100 KB
testcase_15 AC 81 ms
15,316 KB
testcase_16 AC 81 ms
15,332 KB
testcase_17 AC 81 ms
15,160 KB
testcase_18 AC 81 ms
15,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = []
gets.to_i.times{
	a.push(gets.chop + "|")
}
t = ""
while a[0]
	a.sort!
	t += a[0].slice!(0)
	a.slice!(0) if a[0] == "|"
end
puts t
0