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.
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3885 |
3 | jqdai0815 | 3682 |
4 | Benq | 3580 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3506 |
7 | ecnerwala | 3505 |
8 | Radewoosh | 3457 |
9 | Kevin114514 | 3377 |
10 | gamegame | 3374 |
# | User | Contrib. |
---|---|---|
1 | cry | 170 |
2 | -is-this-fft- | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 154 |
8 | luogu_official | 153 |
9 | awoo | 152 |
10 | maomao90 | 150 |
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.
Name |
---|
Auto comment: topic has been updated by bansalarpan4 (previous revision, new revision, compare).
change size of vector a to 1001
thank you
Your modified code that got accepted
You were using 0 based indexing at one place and 1 based indexing at another place
thank you
take your initial array 1001 when u iterate from 1 to n a space is left for 1000 to store or u can make your for loop like this for(int i=0 ; i<=1000 ; ++i)
thank you
Auto comment: topic has been updated by bansalarpan4 (previous revision, new revision, compare).