結果

問題 No.342 一番ワロタww
ユーザー Ryuto
提出日時 2018-03-19 18:35:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 1,118 ms
コンパイル使用メモリ 82,044 KB
実行使用メモリ 54,348 KB
最終ジャッジ日時 2025-01-02 22:25:51
合計ジャッジ時間 1,872 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

indat = input().split('w')
indat.reverse()

sw = 0
wmax = 0
ans = []
for s in indat:
    if s == '':
        sw += 1
    elif sw == wmax:
        ans.append(s)
        sw = 1
    elif sw >= wmax:
        ans = [s]
        wmax = sw
        sw = 1
    else:
        sw = 1

for a in reversed(ans):
    print(a)
0