結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-12 23:31:35 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 430 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-22 04:59:59 |
| 合計ジャッジ時間 | 1,204 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 14 |
ソースコード
s = raw_input()
while s and s[0] == "w": s = s[1:]
ans = []
mxc = 0
curc = 0
sent = ""
for si in s:
if si == "w":
if sent:
if curc == mxc:
ans.append(sent)
elif curc > mxc:
ans = [sent]
mxc = max(mxc, curc)
curc = 0
sent = ""
else:
curc += 1
else:
sent += si
for a in ans:
print(a)