| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 154 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 146 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 133 |
| 10 | cry | 130 |
|
0
Congrats rng_58 =D |
|
0
Here is a short explanation .. First calculate all sums ( sum[i]= number of subarrays with sum 'i' ) This can be done in O(n^2) Now for each query, go through all sums ( for sum=0 to 2*10^7) and calculate the answer. HINT: for each sum 'i' find how many of s[i]'s will lie between L and R . So the complexity is O(n^2 + (10^7)*Q) . This is just an easy solution (and runs in time . For me it ran in 2.39 mins) . Can anyone discuss a better solution ??! |
|
+21
Sorry for my ignorance . But isn't it P!=NP ?? |
|
0
I dont think so. I managed to submit my solution for D (Sad part is it got accepted :( ) . Still don't know whether the tests are final !!! |
|
0
Oh ..One more doubt. Shouldn't dp_buffer[1] be initialised to '1' for each vertex. |
|
0
Yep..Now its fine . |
|
0
Shouldn't "dp_buffer[i + j] += f[v][i]*f[v][j]" (in pseudocode of problem 3) be "dp_buffer[i+j] +=f[cur_node][i]*f[v][j]" ? |
|
0
A great Editorial . Always a great pleasure reading POP's Editorials...Great Job... Really a useful one. Now I feel like I missed a Very Good Round.. Looking forward for ur future contests.. |
| Name |
|---|


