https://codeforces.me/contest/1633/submission/145991004 When I submit my file codeforces says "wrong answer 18th numbers differ — expected: '1', found: '0'" in test 2, but the code works fine in my computer. If anyone can help I would appreciate it.
https://codeforces.me/contest/1633/submission/145991004 When I submit my file codeforces says "wrong answer 18th numbers differ — expected: '1', found: '0'" in test 2, but the code works fine in my computer. If anyone can help I would appreciate it.
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | Dominater069 | 131 |
| 9 | Proof_by_QED | 130 |
| 9 | AmShZ | 130 |
| Name |
|---|



18-th test is 1100 ($$$cnt_0 = cnt_1$$$).
Your program prints 0 (
if (zeros == ones) amount[i] = 0;), but the answer is 1. Why?It is all because we can choose $$$[l; r]$$$ for deleting $$$l$$$ = 0, $$$r$$$ = 2. 110, we delete one zero.