結果

問題 No.341 沈黙の期間
ユーザー fumofumofunifumofumofuni
提出日時 2021-09-14 20:21:53
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 780 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-09-09 18:41:54
合計ジャッジ時間 2,171 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,252 KB
testcase_01 AC 69 ms
71,048 KB
testcase_02 AC 68 ms
71,088 KB
testcase_03 AC 69 ms
71,272 KB
testcase_04 AC 68 ms
71,036 KB
testcase_05 AC 69 ms
71,172 KB
testcase_06 AC 68 ms
71,456 KB
testcase_07 AC 69 ms
71,248 KB
testcase_08 AC 68 ms
71,300 KB
testcase_09 AC 69 ms
71,036 KB
testcase_10 AC 70 ms
71,392 KB
testcase_11 AC 69 ms
71,412 KB
testcase_12 AC 68 ms
71,256 KB
testcase_13 AC 70 ms
71,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
res=0
now=0
for i in range(len(s)):
    if s[i]=='…':
        now+=1
    else:
        res=max(res,now)
        now=0
print(max(res,now))
0