結果

問題 No.341 沈黙の期間
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-09-10 20:52:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 5,000 ms
コード長 270 bytes
コンパイル時間 1,438 ms
コンパイル使用メモリ 86,720 KB
実行使用メモリ 73,136 KB
最終ジャッジ日時 2023-08-18 02:23:35
合計ジャッジ時間 2,718 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
72,728 KB
testcase_01 AC 105 ms
72,760 KB
testcase_02 AC 105 ms
72,692 KB
testcase_03 AC 104 ms
72,860 KB
testcase_04 AC 103 ms
72,912 KB
testcase_05 AC 103 ms
72,944 KB
testcase_06 AC 103 ms
73,064 KB
testcase_07 AC 102 ms
72,908 KB
testcase_08 AC 102 ms
73,024 KB
testcase_09 AC 103 ms
73,052 KB
testcase_10 AC 105 ms
72,700 KB
testcase_11 AC 105 ms
72,924 KB
testcase_12 AC 104 ms
72,844 KB
testcase_13 AC 104 ms
73,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0