結果

問題 No.342 一番ワロタww
ユーザー maguroguma
提出日時 2017-08-20 15:42:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-14 17:27:04
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

import re

S = input()

pattern = r'w+'
segments = list(re.split(pattern, S))
matched_list = re.findall(pattern, S)
max_w = 0
for s in matched_list:
    max_w = max(max_w, len(s))

for i in range(len(segments)):
    if i<len(matched_list) and len(segments[i])>0 and len(matched_list[i])==max_w:
        print(segments[i])
0