| # | 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 | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | Dominater069 | 131 |
| 9 | Proof_by_QED | 130 |
| 9 | AmShZ | 130 |
|
+4
After reading this you should be able to solve the problem for N,L,R<=1e18 |
|
+56
Being able to solve a problem and hating it are not mutually exclusive. I too dislike such problems and take slightly more time to solve them than my rating peers. |
|
+9
Lookup is not necessarily O(1) in unordered map. Read This |
|
+45
Damn it ninjas cutting onions in my room again :( |
|
+31
Personally, I loved the work you did with atcoder. Be it the short, crisp and on point algorithmic problems or the efficient user interface. You will be missed. You'll always inspire me :) |
|
+18
I think publishing the cheater's names and handles in a high viewed blog post or a separate "leaderboard" is the way to go. No better deterrence than public humiliation. |
|
0
Can you predict mine senpai? Although I gotta warn you the volatility of this stock is high xD |
|
0
This reminds me of another question I've been meaning to ask. Has anyone compared their performance under the influence of Ally/Mary? I used to think that Mary would enhance my performance but I actually lost 150 rating that day. Can anyone else share their experience? |
|
0
s1mple>stewie2k>dev1ce |
|
0
This is one of my favorite recursion problem. |
|
-32
Nvm I'm wrong |
|
+6
This greedy is not so hard to prove. Every time we encounter a 1 we necessarily have to chose a subarray including this element. Since we're certain that all elements before it are 0, it can be said that the most optimal solution includes the subarray starting with this 1 if we're allowed to ie: i+k<=n since it leaves the maximum 0s, otherwise choosing the last k elements if possible deletes all possible 1s that we might encounter whilst 'wasting' minimal 0s. |
|
0
Yep greedy works |
|
0
|
|
0
The reason why I'm so sure that my comparator has a problem is because I submitted the solution with a set of pair of shortest distance and node, and it works fine. |
|
+1
Thanks a lot I didn't know this at all. I'll remember this now onward. After I fixed that compare function to return false when elements are equal though the last subtask is accepted it shows WA on some other ones which was not the case before. I'm confused and pretty sure the problem is with my comp function but now what is it? Thanks in advance. |
|
0
I implemented this version of dijikstra from this source only. I didn't use a priority queue cause I wanted to write a shorter code without all those pairs using a set which I'm more comfortable with. But I'm doing something wrong and I can't figure out what :( |
|
0
I read it, made my own custom hash function and got an AC using unordered_map. Thanks a lot. This was a really informative blog post. |
|
0
Auto comment: topic has been updated by manijuana (previous revision, new revision, compare). |
| Name |
|---|


