結果

問題 No.342 一番ワロタww
ユーザー TatsunoTatsuno
提出日時 2016-02-12 23:03:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 472 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 9,960 KB
最終ジャッジ日時 2023-10-22 03:23:33
合計ジャッジ時間 1,454 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

if __name__ == "__main__":
    def get_num(s):
        c = "w"
        n = 0
        m = 0
        i = 0
        j = 0
        for e,v in enumerate(s):
            if v == c:
                m += 1
            else:
                m = 0
                j = e
            if m > n:
                n = m
                i = j
        return n
    s = input()
    sep = "w"*get_num(s)
    for a in s.split(sep):
        if a != '':
            print(a.split("w")[-1])
0