結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-10 20:52:08 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 33 ms / 5,000 ms |
| + 125µs | |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 83,028 KB |
| 実行使用メモリ | 64,492 KB |
| 最終ジャッジ日時 | 2026-09-30 15:43:20 |
| 合計ジャッジ時間 | 2,327 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import math,sys
input = sys.stdin.readline
S = list(input())[:-1]
ans = 0
for g,r in groupby(S):
if g=='…':
n = len(list(r))
ans = max(ans,n)
print(ans)