結果

問題 No.342 一番ワロタww
ユーザー ebicochinealebicochineal
提出日時 2016-02-13 06:50:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 11,772 KB
実行使用メモリ 9,980 KB
最終ジャッジ日時 2023-10-22 04:54:30
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

s=input()+' '
b=''
l=[]
c=max=0
for i in s:
    if i=='w':
        c+=1
    else:
        if c>max and b:
            max=c
            l=[]
        if c==max:
            l+=[b]
        if c>0:
            b=''
            c=0
        b+=i
for i in l:
    print(i)
0