結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,968 KB
testcase_01 AC 30 ms
9,968 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 30 ms
9,968 KB
testcase_06 AC 30 ms
9,968 KB
testcase_07 AC 30 ms
9,968 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 30 ms
9,968 KB
testcase_11 AC 30 ms
9,968 KB
testcase_12 WA -
testcase_13 AC 30 ms
9,968 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
    print(n)
0