結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2025-08-03 18:39:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 477 bytes |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-08-03 18:39:34 |
| 合計ジャッジ時間 | 1,317 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = input()
ans = 0
cnt = 0
for i in range(len(s)):
if s[i] == "…":
cnt += 1
ans = max(ans, cnt)
else:
cnt = 0
print(ans)
r_ishida