結果

問題 No.341 沈黙の期間
ユーザー brthyyjpbrthyyjp
提出日時 2021-09-08 12:51:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,296 KB
最終ジャッジ日時 2023-08-26 18:27:08
合計ジャッジ時間 2,548 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,284 KB
testcase_01 AC 66 ms
71,220 KB
testcase_02 AC 68 ms
71,288 KB
testcase_03 AC 65 ms
71,096 KB
testcase_04 AC 69 ms
71,092 KB
testcase_05 AC 62 ms
71,284 KB
testcase_06 AC 69 ms
70,916 KB
testcase_07 AC 64 ms
71,156 KB
testcase_08 AC 69 ms
71,092 KB
testcase_09 AC 65 ms
71,236 KB
testcase_10 AC 68 ms
71,296 KB
testcase_11 AC 63 ms
71,196 KB
testcase_12 AC 69 ms
71,060 KB
testcase_13 AC 68 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
C = []
cnt = 0
for c in s:
    if c == '…':
        cnt += 1
    else:
        C.append(cnt)
        cnt = 0
else:
    C.append(cnt)
res = 0
for cnt in C:
    res = max(res, cnt)
print(res)
0