結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 11 ms
6,008 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