結果

問題 No.341 沈黙の期間
ユーザー nbisconbisco
提出日時 2016-04-02 11:11:30
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 221 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-07-25 16:15:46
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,792 KB
testcase_01 AC 17 ms
7,784 KB
testcase_02 AC 16 ms
7,952 KB
testcase_03 AC 16 ms
7,776 KB
testcase_04 AC 16 ms
7,780 KB
testcase_05 AC 16 ms
7,788 KB
testcase_06 AC 16 ms
7,948 KB
testcase_07 AC 16 ms
7,908 KB
testcase_08 AC 16 ms
7,972 KB
testcase_09 AC 21 ms
7,832 KB
testcase_10 AC 16 ms
8,000 KB
testcase_11 AC 16 ms
7,780 KB
testcase_12 AC 16 ms
7,772 KB
testcase_13 AC 16 ms
7,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
#fileencoding: utf-8

S = input() + " "
count = 0
dots = 0
for i in S:
    if i == '…':
        dots += 1
    else:
        if dots > count:
            count = dots
        dots = 0
print(count)
0