結果

問題 No.205 マージして辞書順最小
ユーザー eigh8_teigh8_t
提出日時 2015-08-08 02:57:18
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 11,580 KB
実行使用メモリ 18,764 KB
最終ジャッジ日時 2023-09-25 06:41:15
合計ジャッジ時間 2,950 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,212 KB
testcase_01 AC 81 ms
15,132 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 82 ms
15,308 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 91 ms
18,440 KB
testcase_11 AC 92 ms
18,468 KB
testcase_12 WA -
testcase_13 AC 90 ms
18,664 KB
testcase_14 AC 82 ms
15,152 KB
testcase_15 AC 81 ms
15,164 KB
testcase_16 AC 81 ms
15,112 KB
testcase_17 AC 82 ms
15,136 KB
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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