結果

問題 No.341 沈黙の期間
ユーザー ymgckyoymgckyo
提出日時 2017-11-05 12:23:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 7,924 KB
最終ジャッジ日時 2023-08-15 17:18:15
合計ジャッジ時間 1,365 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,800 KB
testcase_01 AC 13 ms
7,820 KB
testcase_02 AC 12 ms
7,812 KB
testcase_03 AC 13 ms
7,900 KB
testcase_04 AC 12 ms
7,924 KB
testcase_05 AC 12 ms
7,860 KB
testcase_06 AC 12 ms
7,844 KB
testcase_07 AC 12 ms
7,860 KB
testcase_08 AC 12 ms
7,864 KB
testcase_09 AC 12 ms
7,856 KB
testcase_10 AC 13 ms
7,916 KB
testcase_11 AC 13 ms
7,864 KB
testcase_12 AC 13 ms
7,812 KB
testcase_13 AC 13 ms
7,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())

highest = 0
tmp = 0
for e in s:
    if e == '…':
        tmp += 1
        if tmp > highest:
            highest = tmp
    else:
        tmp = 0

print(highest)
0