結果

問題 No.342 一番ワロタww
ユーザー RyutoRyuto
提出日時 2018-03-19 18:38:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 71,528 KB
最終ジャッジ日時 2023-08-05 16:31:23
合計ジャッジ時間 2,334 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,428 KB
testcase_01 AC 68 ms
71,204 KB
testcase_02 AC 66 ms
71,528 KB
testcase_03 AC 68 ms
71,116 KB
testcase_04 AC 67 ms
71,440 KB
testcase_05 AC 68 ms
71,132 KB
testcase_06 AC 70 ms
71,204 KB
testcase_07 AC 69 ms
71,228 KB
testcase_08 AC 68 ms
71,516 KB
testcase_09 AC 70 ms
70,980 KB
testcase_10 AC 69 ms
71,240 KB
testcase_11 AC 69 ms
71,300 KB
testcase_12 AC 68 ms
71,148 KB
testcase_13 AC 69 ms
71,004 KB
testcase_14 AC 67 ms
71,324 KB
testcase_15 AC 68 ms
71,412 KB
testcase_16 AC 67 ms
71,376 KB
権限があれば一括ダウンロードができます

ソースコード

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