結果

問題 No.341 沈黙の期間
ユーザー rocoderrocoder
提出日時 2017-06-04 17:46:28
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 11,648 KB
実行使用メモリ 9,928 KB
最終ジャッジ日時 2023-10-22 04:22:22
合計ジャッジ時間 1,432 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
9,920 KB
testcase_01 AC 30 ms
9,920 KB
testcase_02 AC 29 ms
9,920 KB
testcase_03 AC 31 ms
9,920 KB
testcase_04 AC 29 ms
9,920 KB
testcase_05 AC 30 ms
9,920 KB
testcase_06 AC 28 ms
9,920 KB
testcase_07 AC 30 ms
9,920 KB
testcase_08 AC 29 ms
9,920 KB
testcase_09 AC 29 ms
9,920 KB
testcase_10 AC 29 ms
9,928 KB
testcase_11 AC 29 ms
9,920 KB
testcase_12 AC 29 ms
9,928 KB
testcase_13 AC 30 ms
9,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#silence
S=list(input())
A=0
i=0
while i<len(S):
    if S[i]=="…":
        c=0
        while i<len(S) and S[i]=="…":
            c+=1
            i+=1
        if A<c:
            A=c
    i+=1
print (A)
0