結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
todo_2mariko
|
| 提出日時 | 2019-03-07 21:57:14 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2026-07-27 23:33:59 |
| 合計ジャッジ時間 | 5,032 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 8 |
ソースコード
ans = -1
s = input().split('c')
s.pop(0)
if s:
for i in s:
j = list(i)
if j.count('w') >= 2:
del j[j.index('w')]
ans = [j.index('w')+3, ans][0 < ans < j.index('w')+3]
print(ans)
todo_2mariko