結果
問題 | No.342 一番ワロタww |
ユーザー |
![]() |
提出日時 | 2016-02-24 15:25:01 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 523 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-22 13:19:19 |
合計ジャッジ時間 | 2,381 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 RE * 2 |
コンパイルメッセージ
Syntax OK
ソースコード
s=getstmp=s.count('w')if tmp==0||tmp==s.size thenexitendwhile s[0]=='w' dos=s[1,s.size-1]endwhile s[s.size-1]!='w' dos=s[0,s.size-1]endma=0lis=[]while s.size!=0 doc=0while c<s.size&&s[c]!='w' doc+=1endss=s[0,c]s=s[c,s.size-c]c=0while c<s.size&&s[c]=='w' doc+=1ends=s[c,s.size-c]if ma<c thenlis=[ss]ma=celsif ma==c thenlis.push(ss)endendfor e in lisprint e+"\n"end