結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2016-02-13 00:22:55 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 43 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-22 05:09:41 |
合計ジャッジ時間 | 2,023 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 4 |
コンパイルメッセージ
Syntax OK
ソースコード
# coding: utf-8 s = gets.chop count = 0 ans = 0 for i in 0...s.size if s[i] == '…' count += 1 else if count > 0 if ans < count ans = count count = 0 end end end end if ans < count ans = count end print ans,"\n"