結果

問題 No.341 沈黙の期間
ユーザー kichirb3kichirb3
提出日時 2018-03-04 10:15:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 359 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 9,064 KB
最終ジャッジ日時 2023-09-20 20:29:19
合計ジャッジ時間 1,276 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
8,948 KB
testcase_01 AC 25 ms
9,004 KB
testcase_02 AC 24 ms
8,868 KB
testcase_03 AC 25 ms
8,868 KB
testcase_04 AC 24 ms
8,956 KB
testcase_05 AC 25 ms
8,952 KB
testcase_06 AC 25 ms
8,952 KB
testcase_07 AC 25 ms
8,880 KB
testcase_08 AC 25 ms
9,064 KB
testcase_09 AC 24 ms
8,944 KB
testcase_10 AC 24 ms
8,948 KB
testcase_11 AC 25 ms
9,012 KB
testcase_12 AC 24 ms
8,976 KB
testcase_13 AC 25 ms
9,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
No.341 沈黙の期間
https://yukicoder.me/problems/no/341

"""
import sys
from sys import stdin
import re
input = stdin.readline


def main(args):
    ans = 0
    S = input().strip()
    mm = re.findall('…+', S)
    for m in mm:
        ans = max(ans, len(m))
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])
0