結果

問題 No.341 沈黙の期間
ユーザー zaichu
提出日時 2016-02-13 00:18:56
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-09-22 05:09:24
合計ジャッジ時間 1,895 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# coding: utf-8
s = gets.chop
count = 0
ans = 0
for i in 0..s.size+1 do
  if s[i] == '…' then
    count += 1
  else
    if count > 0 then
      if ans < count then
        ans = count
        count = 0
      end
    end
  end
end
if ans < count then
  ans = count
end
print ans,"\n"
0