| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | jiangly | 3670 |
| 3 | Kevin114514 | 3657 |
| 4 | maroonrk | 3355 |
| 5 | Um_nik | 3353 |
| 6 | squareOf105 | 3346 |
| 7 | tourist | 3343 |
| 8 | strapple | 3324 |
| 9 | heuristica | 3322 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 141 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 134 |
| 9 | maroonrk | 133 |
| 10 | qwexd | 130 |
|
On
someone_lunatic_lyk_hell →
Help needed in problem involving constructive queue simulation, 2 years ago
0
Can u please elaborate your approach a little bit more. I am struck in this problem from so long. |
|
On
someone_lunatic_lyk_hell →
Help needed in problem involving constructive queue simulation, 2 years ago
0
Auto comment: topic has been updated by someone_lunatic_lyk_hell (previous revision, new revision, compare). |
|
On
dorjderem →
Anyone who comments under this post has to reach CM by September if can't...., 3 years ago
0
I'm in dude!! Let's do it! |
|
0
Please can u write a separate blog so that the whole community can know how this guy is killing the whole spirit of competitive programming. I think his main account should immediately be blocked. |
|
+3
The core idea revolves around determining the number of ways to activate bulbs in such a way that disjoint ranges are covered. The approach involves finding** sets of bulbs that, when activated, cover a specific disjoint range**. Spoiler This is achieved by eliminating unnecessary bulbs through the use of prefix hash values, allowing for speedy identification of redundant bulbs. Let's denote the number of disjoint ranges as 'k.' For each range, we aim to identify the bulbs whose activation covers the entire range. Through some careful considerations, we conclude that we need to eliminate bulbs that do not contribute to extending the current segment. This elimination process is efficiently executed using prefix hash values and storing the last pointer for each unique prefix value. To illustrate this concept, consider the arrangement of bulbs: 1 2 2 3 1 3. The number of disjoint ranges in this case is one. Building prefix hash values results in pre[0]=1, pre[1]=1^2, pre[2]=1, pre[3]=1^3, pre[4]=3, pre[5]=0. After activating the first bulb, we jump to the bulb at index 1 + (last[1]=2). Spoiler Notice that bulbs at index 1 and 2 are not useful as they lie completely within our segment, and they do not contribute to generating a new hashed value or extending the current range. The hashing technique employed here, as introduced by jiangly, is a so cool and unique that when understood properly can be generalized to solve a variety of other problems involving segment merging or ranges. |
|
0
Will try for expert!! Current rating is 1273; And no. of problem solved is 467. Will try to raise this count to 800+. Let's see... !!!!!! |
| Name |
|---|


