| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | maspy | 150 |
| 3 | Um_nik | 145 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 7 | nik_exists | 133 |
| 9 | AmShZ | 130 |
| 10 | Dominater069 | 129 |
|
0
It's brilliant! Thank you bicsi, this is a really neat solution. I have another solution to this problem that may work Use f[i][j]=X to represent the X extra segments are needed to cover from i to i + 2^j Use g[i][j]=Y to represent when adding f[i][j] extra segments after segment i, the actual terminating node is Y. DP to calculate f, g, then loop every starting node and lookup f, g to calculate the answer in logK. Go through this process and reverse all segments to do it again, to cover the case that first extra segment is not starting from i_right |
|
0
I think the prerequisite of sliding window is: if you move head or tail, middle solution doesn't change. Which might not be true in this problem |
|
0
How are you going to handle the case that one extra X covers multiple intervals? Also, when the head of sliding window changes, all the extra X in the middle might change. |
|
0
Auto comment: topic has been updated by Mopriestt (previous revision, new revision, compare). |
|
0
Auto comment: topic has been updated by Mopriestt (previous revision, new revision, compare). |
|
+2
Oh,I smelt some special tricks.. |
|
+4
Surprised to see Chinese character^_^ |
|
+19
(with sniper precision)! |
|
0
Div1..not Div2 |
|
+1
For div1 B...I tested the case#3 on my PC and the answer is correct,but the result is different on CF.. |
| Name |
|---|


