結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-04 14:36:54 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 193 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 82,832 KB |
| 実行使用メモリ | 56,528 KB |
| 最終ジャッジ日時 | 2026-09-29 17:13:36 |
| 合計ジャッジ時間 | 2,750 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 11 WA * 18 |
ソースコード
S = input()
c_idx = S.find("c")
w_1_idx = S.find("w", c_idx)
w_2_idx = S.find("w", w_1_idx)
if c_idx != -1 and w_1_idx != -1 and w_2_idx != -1:
print(w_2_idx-c_idx+1)
else :
print(-1)