結果
| 問題 | 
                            No.342 一番ワロタww
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-08-20 15:52:31 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 348 bytes | 
| コンパイル時間 | 88 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-10-14 17:27:39 | 
| 合計ジャッジ時間 | 1,297 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 13 WA * 1 | 
ソースコード
# -*- 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])