結果
| 問題 |
No.342 一番ワロタww
|
| コンテスト | |
| ユーザー |
zombietan
|
| 提出日時 | 2016-06-06 10:26:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-15 13:24:34 |
| 合計ジャッジ時間 | 1,284 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
import re
from collections import defaultdict
S = input()
warota = re.findall(r'[^w]+w+', S)
count = defaultdict(list)
if warota:
for w in warota:
c = w.count('w')
i = w.index('w')
count[c].append(w[0:i])
m = max(count.keys())
for ans in count[m]:
print(ans)
else:
print('')
zombietan