結果
問題 | No.342 一番ワロタww |
ユーザー |
![]() |
提出日時 | 2016-02-12 23:01:43 |
言語 | Ruby (3.4.1) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 1,175 bytes |
コンパイル時間 | 47 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-15 13:12:43 |
合計ジャッジ時間 | 2,352 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 1 |
コンパイルメッセージ
Main.rb:63: warning: mismatched indentations at 'end' with 'if' at 47 Syntax OK
ソースコード
s=getsres=0c=0f=falses.length.times do|i|if s[i].ord==65367next if !fc +=1elsef=trueres=c if c > resc=0endendf=falseres=c if c > resc=0s.length.times do|i|if s[i].ord==65367next if !fc +=1elsef=truenext if c==0if res == cj=1next if i-j <= 0while i-j>=0&&s[i-j].ord==65367j+=1endnext if i-j <= 0while i-j>=0&&s[i-j].ord!=65367j +=1endj-=1while s[i-j].ord!=65367print s[i-j]j-=1endputsendc=0endendexiti=s.lengthif res == c && c >1j=1exit if i-j <= 0while i-j>=0&&s[i-j].ord==65367j+=1endexit if i-j <= 0while i-j>=0&&s[i-j].ord!=65367j +=1endj-=1while s[i-j].ord!=65367print s[i-j]j-=1endputsend