結果

問題 No.342 一番ワロタww
ユーザー RyutoRyuto
提出日時 2018-03-19 18:35:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 71,544 KB
最終ジャッジ日時 2023-08-30 23:13:52
合計ジャッジ時間 2,830 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 74 ms
71,460 KB
testcase_02 AC 73 ms
71,060 KB
testcase_03 AC 76 ms
71,204 KB
testcase_04 AC 73 ms
71,388 KB
testcase_05 AC 75 ms
71,268 KB
testcase_06 AC 75 ms
71,392 KB
testcase_07 AC 75 ms
71,340 KB
testcase_08 AC 74 ms
71,276 KB
testcase_09 AC 73 ms
71,308 KB
testcase_10 AC 73 ms
71,340 KB
testcase_11 AC 74 ms
71,480 KB
testcase_12 AC 74 ms
71,544 KB
testcase_13 AC 74 ms
71,408 KB
testcase_14 WA -
testcase_15 AC 72 ms
71,276 KB
testcase_16 AC 73 ms
71,284 KB
権限があれば一括ダウンロードができます

ソースコード

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