結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
tkmst201
|
| 提出日時 | 2021-01-11 17:27:01 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 57µs | |
| コード長 | 486 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-27 11:02:12 |
| 合計ジャッジ時間 | 1,993 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
S = input() mx = 0 i = 0 while i < len(S): j = i while j < len(S) and S[j] != "w": j = j + 1 if j == len(S): break cnt = 0 while j + cnt < len(S) and S[j + cnt] == "w": cnt = cnt + 1 if i != j: mx = max(mx, cnt) i = j + cnt i = 0 while i < len(S): j = i while j < len(S) and S[j] != "w": j = j + 1 if j == len(S): break cnt = 0 while j + cnt < len(S) and S[j + cnt] == "w": cnt = cnt + 1 if i != j and cnt == mx: print(S[i:j]) i = j + cnt
tkmst201