my logic is first i will check if the entire vector is of 0s ,if yes then i just output 1 to n but otherwise i check if there are zeros on the left of the array and right of the array and perform operations accordingly ,u can easily see from my code
my logic is first i will check if the entire vector is of 0s ,if yes then i just output 1 to n but otherwise i check if there are zeros on the left of the array and right of the array and perform operations accordingly ,u can easily see from my code
# | User | Rating |
---|---|---|
1 | tourist | 3892 |
2 | jiangly | 3797 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3588 |
6 | ecnerwala | 3557 |
7 | Ormlis | 3532 |
8 | Benq | 3468 |
9 | Radewoosh | 3463 |
10 | Um_nik | 3450 |
# | User | Contrib. |
---|---|---|
1 | cry | 165 |
2 | Qingyu | 159 |
3 | -is-this-fft- | 158 |
3 | atcoder_official | 158 |
5 | Dominater069 | 156 |
6 | adamant | 154 |
7 | djm03178 | 151 |
8 | luogu_official | 150 |
9 | awoo | 148 |
10 | maomao90 | 145 |
Name |
---|