結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2016-02-13 00:26:01 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 93 ms / 5,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 67 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-22 05:09:43 |
合計ジャッジ時間 | 1,902 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
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 end end count = 0 end end if ans < count ans = count end puts ans