結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-16 11:55:55 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2026-11-16 11:55:58 |
| 合計ジャッジ時間 | 2,920 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 11 WA * 20 |
ソースコード
s = input() ans = -1 lst = list(s) lenth = len(lst) for index,item in enumerate(lst): if item == "c": c = index for index,item in enumerate(lst): if item == "w" and index > c: w = index for index,item in enumerate(lst): if item == "w" and index > w: ww = index ans = ww - c print(ans)