does anyone have any viable explanation for the following submission failing on test case 3 Submission — 297549624 ques 2042B - Game with Colored Marbles
edit : actually i found the error , never mind.
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
does anyone have any viable explanation for the following submission failing on test case 3 Submission — 297549624 ques 2042B - Game with Colored Marbles
edit : actually i found the error , never mind.
| Название |
|---|



change size of vector a to 1001
Your modified code that got accepted
You were using 0 based indexing at one place and 1 based indexing at another place