結果
問題 | No.342 一番ワロタww |
ユーザー |
![]() |
提出日時 | 2025-01-16 00:08:06 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 2,494 ms |
コンパイル使用メモリ | 82,064 KB |
実行使用メモリ | 65,924 KB |
最終ジャッジ日時 | 2025-01-16 00:08:11 |
合計ジャッジ時間 | 4,072 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 RE * 1 |
ソースコード
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)