結果
問題 | No.342 一番ワロタww |
ユーザー |
![]() |
提出日時 | 2025-01-16 00:09:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 5,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 389 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 53,456 KB |
最終ジャッジ日時 | 2025-01-16 00:09:27 |
合計ジャッジ時間 | 2,170 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
S = input()NS = len(S)ans = []maxw = 1i = 0while i < NS and S[i] == "w":i += 1while i < NS:tmp = ""while i < NS and S[i] != "w":tmp += S[i]i += 1j = 0while i < NS and S[i] == "w":i += 1j += 1if j == maxw:ans.append(tmp)elif j > maxw:maxw = jans = [tmp]for a in ans:print(a)