結果

問題 No.341 沈黙の期間
ユーザー ABKZ
提出日時 2023-02-04 14:46:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 202 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 82,172 KB
実行使用メモリ 53,532 KB
最終ジャッジ日時 2024-07-03 12:16:41
合計ジャッジ時間 1,335 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = 0

cnt = 0
for x in S:
    if x == "…":
        cnt += 1
    else:
        if cnt > ans:
            ans = cnt

        cnt = 0
else:
    if cnt > ans:
        ans = cnt

print(ans)
0