結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2016-02-13 00:18:00 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-09-22 05:09:22 |
| 合計ジャッジ時間 | 1,956 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 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"
zaichu