結果
| 問題 |
No.345 最小チワワ問題
|
| コンテスト | |
| ユーザー |
Neochi
|
| 提出日時 | 2017-07-06 00:02:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 155 bytes |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-05 20:17:14 |
| 合計ジャッジ時間 | 2,207 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 18 RE * 5 |
ソースコード
M = input()
c = M.find("c")
index = [i for i, x in enumerate(M) if x == "w"]
if c < index[0]:
ans = index[1] + 1 - c
print(ans)
else:
print(-1)
Neochi