結果
問題 | No.341 沈黙の期間 |
ユーザー |
![]() |
提出日時 | 2016-04-19 09:31:28 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 86 ms / 5,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 40 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-10-04 14:02:44 |
合計ジャッジ時間 | 1,779 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets.chop ans = 0 now = 0 (0...s.size).each do |i| if s[i] == '…' now += 1 ans = now if now > ans else now = 0 end end puts ans