結果

問題 No.341 沈黙の期間
ユーザー drao0113drao0113
提出日時 2016-03-27 01:42:02
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 346 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-10 00:15:18
合計ジャッジ時間 1,933 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

MODE = "stdio"

tmp = Array.new




if(defined? MODE)
  tmp = STDIN.read.split("\n")
else
  iotmp = "\
  ……何で………もないです。
  ".split("\n")
  iotmp.each{|s|
    tmp << s.strip
  }
end


maxcnt=cnt=0
tmp[0].each_char do |ch|
  if ch=="…"
     cnt += 1
  else
    cnt=0
  end
  
  maxcnt = [maxcnt, cnt].max
end


puts maxcnt
0