結果
問題 |
No.342 一番ワロタww
|
ユーザー |
![]() |
提出日時 | 2016-04-14 20:36:54 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 5,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-10-15 13:22:55 |
合計ジャッジ時間 | 795 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
#coding:utf-8 import re s=raw_input() r=re.compile(".+?(?:w)+") m=r.findall(s) t=[(i.count("w"),i) for i in m if len(i.replace("w",""))>0] if len(t)==0: exit() m=max([i[0] for i in t]) t=[i[1].replace("w","") for i in t if i[0]==m] print "\n".join(t)