結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-10 20:52:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 270 bytes |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 82,444 KB |
| 実行使用メモリ | 56,864 KB |
| 最終ジャッジ日時 | 2024-11-27 04:19:24 |
| 合計ジャッジ時間 | 1,503 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)