結果
問題 | No.342 一番ワロタww |
ユーザー |
![]() |
提出日時 | 2016-02-12 22:32:03 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 90 ms / 5,000 ms |
コード長 | 365 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-15 13:10:32 |
合計ジャッジ時間 | 2,179 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets.chompres = 0cur = 0tmp = ""lst = []for i in 0...s.lengthc = s[i]if c.ord == "w".ord || c.ord == 33431if tmp!=""cur += 1if cur>resres = curlst = [tmp.dup]elsif cur==reslst.push tmp.dupendendelseif cur!=0tmp = ""endcur = 0tmp += cendendputs lst