Someone hacked my solution of problem D. Now it says WA. But I can't find any mistake. Please help me to find the mistake. My submission: https://codeforces.com/contest/1520/submission/115269582
№ | Пользователь | Рейтинг |
---|---|---|
1 | jiangly | 3640 |
2 | Benq | 3593 |
3 | tourist | 3572 |
4 | orzdevinwang | 3561 |
5 | cnnfls_csy | 3539 |
6 | ecnerwala | 3534 |
7 | Radewoosh | 3532 |
8 | gyh20 | 3447 |
9 | Rebelz | 3409 |
10 | Geothermal | 3408 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | maomao90 | 173 |
2 | adamant | 164 |
3 | awoo | 161 |
4 | TheScrasse | 160 |
5 | nor | 159 |
6 | maroonrk | 156 |
7 | SecondThread | 152 |
8 | pajenegod | 146 |
9 | BledDest | 144 |
10 | Um_nik | 143 |
Someone hacked my solution of problem D. Now it says WA. But I can't find any mistake. Please help me to find the mistake. My submission: https://codeforces.com/contest/1520/submission/115269582
Название |
---|
In fact, you should also calculate the negative numbers.
Utsa2000, EDqwq is the someone who hacked your solution :P
Thank you. I understand now. I should use map.
For $$$a_i-i<0$$$ , you should calculate them instead of just ignoring them :(
problem D is really a war