結果

問題 No.205 マージして辞書順最小
ユーザー Tsuneo YoshiokaTsuneo Yoshioka
提出日時 2015-05-08 23:15:35
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 799 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 18,828 KB
最終ジャッジ日時 2023-09-19 08:27:22
合計ジャッジ時間 3,716 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,156 KB
testcase_01 AC 88 ms
15,048 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 84 ms
15,244 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 94 ms
18,452 KB
testcase_11 AC 97 ms
18,552 KB
testcase_12 WA -
testcase_13 AC 92 ms
18,536 KB
testcase_14 AC 84 ms
15,064 KB
testcase_15 AC 83 ms
15,148 KB
testcase_16 AC 82 ms
15,072 KB
testcase_17 AC 83 ms
15,148 KB
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=gets.to_i
ss=STDIN.read.split
result=""
while ! ss.empty? do
    ss.sort!
    result += ss[0][0]
    ss[0] = ss[0][1,10000]
    if(ss[0].length==0)
        ss.slice!(0,1)
    end
end
puts result
0