結果

問題 No.341 沈黙の期間
ユーザー syunsukesyunsuke
提出日時 2020-11-01 11:47:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 156 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 71,568 KB
最終ジャッジ日時 2023-09-29 11:10:58
合計ジャッジ時間 2,173 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,260 KB
testcase_01 AC 68 ms
71,112 KB
testcase_02 AC 68 ms
71,264 KB
testcase_03 AC 68 ms
71,112 KB
testcase_04 AC 68 ms
71,340 KB
testcase_05 AC 68 ms
71,388 KB
testcase_06 AC 68 ms
71,560 KB
testcase_07 AC 68 ms
71,420 KB
testcase_08 AC 68 ms
71,080 KB
testcase_09 AC 68 ms
71,308 KB
testcase_10 AC 69 ms
71,568 KB
testcase_11 AC 68 ms
71,564 KB
testcase_12 AC 68 ms
71,112 KB
testcase_13 AC 69 ms
71,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()

Max=0
cnt=0
for i in range(len(S)):
    if S[i]=="…":
        cnt+=1
        if Max<cnt:
            Max=cnt
    else:
        cnt=0
print(Max)
0