結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-01-16 00:09:24 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 5,000 ms |
| + 168µs | |
| コード長 | 391 bytes |
| 記録 | |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 64,596 KB |
| 実行使用メモリ | 53,572 KB |
| 最終ジャッジ日時 | 2026-10-29 02:32:49 |
| 合計ジャッジ時間 | 2,620 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
S = input()
NS = len(S)
ans = []
maxw = 1
i = 0
while i < NS and S[i] == "w":
i += 1
while i < NS:
tmp = ""
while i < NS and S[i] != "w":
tmp += S[i]
i += 1
j = 0
while i < NS and S[i] == "w":
i += 1
j += 1
if j == maxw:
ans.append(tmp)
elif j > maxw:
maxw = j
ans = [tmp]
for a in ans:
print(a)
ntuda