結果

問題 No.342 一番ワロタww
ユーザー nebukuro09nebukuro09
提出日時 2016-10-24 16:02:42
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 326 bytes
コンパイル時間 906 ms
コンパイル使用メモリ 77,916 KB
実行使用メモリ 77,064 KB
最終ジャッジ日時 2023-08-15 18:36:25
合計ジャッジ時間 2,982 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding: utf-8 -*-
import re
S = raw_input().decode("utf-8")
sp1 = filter(None, re.split(u'w+', S))
sp2 = map(len, filter(None, re.split(u'[^w]+', S)))
if S.startswith(u'w'):
    sp2.pop(0)
if not S.endswith(u'w'):
    sp2.append(0)
m = max(sp2)
for i in xrange(len(sp1)):
    if sp2[i] == m:
        print sp1[i]
0