結果

問題 No.341 沈黙の期間
ユーザー TatsunoTatsuno
提出日時 2016-02-12 22:30:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,740 KB
実行使用メモリ 9,956 KB
最終ジャッジ日時 2023-10-22 03:12:45
合計ジャッジ時間 1,011 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

if __name__ == "__main__":
    c = "…"
    s = input()
    n = 0
    m = 0
    for v in s:
        if v == c:
            m += 1
        elif m > n:
            n = m
            m = 0
    if m > n:
        n = m
    print(n)
0