結果

問題 No.342 一番ワロタww
ユーザー nebukuro09nebukuro09
提出日時 2016-10-24 16:04:17
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 386 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 6,760 KB
実行使用メモリ 6,136 KB
最終ジャッジ日時 2023-08-15 18:36:08
合計ジャッジ時間 933 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 10 ms
6,024 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 AC 9 ms
5,848 KB
testcase_15 AC 10 ms
5,836 KB
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 len(sp1) == 0 or len(sp2) == 0:
    print ''
    exit()
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