結果

問題 No.341 沈黙の期間
ユーザー HAHAHAHAHAHA
提出日時 2016-04-07 12:32:24
言語 Ruby
(3.2.2)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-07-27 09:44:30
合計ジャッジ時間 2,359 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,216 KB
testcase_01 AC 83 ms
15,108 KB
testcase_02 AC 82 ms
15,108 KB
testcase_03 AC 81 ms
15,108 KB
testcase_04 AC 83 ms
15,108 KB
testcase_05 AC 83 ms
15,116 KB
testcase_06 AC 86 ms
15,252 KB
testcase_07 AC 85 ms
15,172 KB
testcase_08 AC 84 ms
15,052 KB
testcase_09 AC 85 ms
15,332 KB
testcase_10 AC 84 ms
15,252 KB
testcase_11 AC 82 ms
15,000 KB
testcase_12 AC 82 ms
15,268 KB
testcase_13 AC 84 ms
15,240 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.strip.split('')

a = 0
n = s.size
M = 0

while a < n
  while a < n && s[a] != "…"
    a += 1
  end

  b = a
  while a < n && s[a] == "…"
    a += 1
  end

  L = a - b
  if M < L
    M = L
  end
end

puts M
0