結果

問題 No.342 一番ワロタww
ユーザー fine
提出日時 2016-03-10 21:30:29
言語 Ruby
(3.4.1)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 222 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-15 13:22:23
合計ジャッジ時間 2,071 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp
max = 0
ans = ['']
while s =~ /([^w]+)(w+)/
    if max <= $2.size
        if max < $2.size
            max = $2.size
            ans.clear
        end
        ans.push($1)
    end
    s = $'
end
puts ans
0