結果

問題 No.342 一番ワロタww
ユーザー Ryuto
提出日時 2018-03-19 18:38:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 51,840 KB
最終ジャッジ日時 2024-10-15 13:37:05
合計ジャッジ時間 1,427 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

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

sw = 0
wmax = 0.5
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