結果

問題 No.341 沈黙の期間
ユーザー brookbrook
提出日時 2016-02-12 22:32:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 146 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 11,860 KB
実行使用メモリ 16,096 KB
最終ジャッジ日時 2023-10-22 03:13:46
合計ジャッジ時間 2,032 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
16,096 KB
testcase_01 AC 87 ms
16,096 KB
testcase_02 AC 81 ms
16,096 KB
testcase_03 AC 81 ms
16,096 KB
testcase_04 AC 83 ms
16,096 KB
testcase_05 AC 83 ms
16,096 KB
testcase_06 AC 81 ms
16,096 KB
testcase_07 AC 82 ms
16,096 KB
testcase_08 AC 81 ms
16,096 KB
testcase_09 AC 84 ms
16,096 KB
testcase_10 AC 82 ms
16,096 KB
testcase_11 AC 79 ms
16,096 KB
testcase_12 AC 79 ms
16,096 KB
testcase_13 AC 80 ms
16,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.split('')
l = 0
max = 0
s.each do |v|
  if v == '…'
    l += 1
  else
    if l > max
      max = l
    end
    l = 0
  end
end
puts max
0