結果
問題 | No.341 沈黙の期間 |
ユーザー | zaichu |
提出日時 | 2016-02-13 00:18:56 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 11,900 KB |
実行使用メモリ | 16,124 KB |
最終ジャッジ日時 | 2023-10-22 03:46:02 |
合計ジャッジ時間 | 2,051 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 78 ms
16,092 KB |
testcase_01 | AC | 79 ms
16,092 KB |
testcase_02 | AC | 74 ms
16,092 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 71 ms
16,092 KB |
testcase_06 | AC | 73 ms
16,088 KB |
testcase_07 | AC | 79 ms
16,088 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 75 ms
16,092 KB |
testcase_11 | AC | 77 ms
16,092 KB |
testcase_12 | AC | 74 ms
16,088 KB |
testcase_13 | AC | 73 ms
16,092 KB |
コンパイルメッセージ
Syntax OK
ソースコード
# 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"