結果

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

テストケース

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

ソースコード

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 
0