| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
|
0
I am not able to find what's wrong in this solution for E, can somebody help :) 177207734 |
|
+17
Did anyone else also thought that the lid can be moved more than once in Problem C :") |
|
0
Wrong Ans on test case 46, what? :( 176324763 |
|
0
For C1: Firstly count the number of all possible pairs i.e. n+nC2. Now we subtract the pair which is not possible. In the equation max(0,i-a[i]-q)*(n-i+1), max(0,i-a[i]-q) represents the no of options of choosing the left l and (n-i+1) represents the no of right choices. Here to avoid re-counting q is used which represents all the left before q are already chosen. |
|
+4
Take an example a = {4,2,4}. Let the array b={b1,b2,b3,b4}. since gcd(b1,b2)=4, b2 is a multiple of 4 and since gcd(b3,b4)=4, b3 is a multiple of 4. Therefore the greatest common divisor of b2 and b3 will be a multiple of gcd(4,4)=4 (i.e. a[i] must be a multiple of gcd(a[i-1],a[i+1])). We cannot construct the array when it is not a multiple. (sorry for any language mistakes :)) |
|
+4
|
|
0
Thanks! |
|
0
Can anyone please check why my code is failing on pretest 3 173225741 |
|
0
Did Problem D just 15 seconds after the contest :( |
| Name |
|---|


