結果

問題 No.341 沈黙の期間
ユーザー kazuppa
提出日時 2025-07-26 08:50:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-07-26 08:50:50
合計ジャッジ時間 2,030 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

s = input()
ans = 0
now = 0
for i in range(len(s)):
    if s[i] == "…":
        now += 1
        ans = max(ans, now)
    else:
        now = 0
print(ans)
0