結果

問題 No.341 沈黙の期間
ユーザー tkmst201tkmst201
提出日時 2021-01-11 17:17:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 153 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-21 09:17:16
合計ジャッジ時間 1,179 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = 0
i = 0
while i < len(S):
	j = i
	while j < len(S) and S[j] == "…":
		j = j + 1
	ans = max(ans, j - i)
	i = max(i + 1, j)

print(ans)
0