結果

問題 No.342 一番ワロタww
ユーザー nebukuro09
提出日時 2016-10-24 16:12:29
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 358 bytes
コンパイル時間 1,386 ms
コンパイル使用メモリ 76,800 KB
実行使用メモリ 76,160 KB
最終ジャッジ日時 2024-11-24 02:45:19
合計ジャッジ時間 3,531 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other AC * 1 WA * 1 RE * 12
権限があれば一括ダウンロードができます

ソースコード

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].encode('utf-8').decode('utf-8')
0