| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 141 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
|
0
|
|
0
|
|
0
|
|
0
I am unable to figure out the issue with my problem F submission. I am simply following 3 steps: I am trying to find the bug for the last 2 hours but no luck so far. Please help. |
|
0
For problem D I tried the following for v > u But it is failing I am unable to come up with a counter example. Please help |
|
0
nicely explained!! thanks |
|
0
Can we prove that at any layer there will be at most 2 distinct numbers? I tried a few examples and it seems to be working |
|
0
Please ignore.. will ask here https://codeforces.me/blog/entry/86642 |
|
0
For F I understand that if y is even and the optimal answer is going to have a division operation then it is optimal to perform division right now. If y is odd then try both y-1 and y+1. It suggests that after at most 2 operation value will be halved. This way the height of the recursive tree will be log(y)=~60 I tried a few examples and it seems the number of states at each height is not growing very fast because of collision Is there any tight upper bound for the number of states at each height and overall states in the tree? |
|
0
sshwyR SecondThread Monogon — Since this post is ~ 2 months old, hence tagging few members. Please don't mind. Can someone please explain the hashing part in Div2E? I understand that we want to compare the union of sets to {1, 2, 3, ..., n} using hashing e.g. union of {1, 2, 4} and {3, 5, 6} is equal to {1, 2, 3, 4, 5, 6} I tried hash as product modulo prime but I got an error on 8th test case and I realized that this is not a good way to hash because it can generate same hash for distinct sets Is there any blog/tutorial that I can follow to understand this? Any help will be appreciated |
|
+8
ddzzdefc was the culprit |
|
0
This example is working fine |
|
0
I have tried a lot but still stuck in Test 46. The above 2 examples are working fine. Any help/guidance will be appreciated |
|
0
During the contest, I was able to derive this formula
I am sure this recurrence is correct but this form didn't let the computation to be in O(N) Thanks for sharing the formula @mickeyandkaka |
|
0
Finally I understood. The above code is same as |
|
0
|
|
0
I manage to solve Problem D: ABS. But I am still not sure whether my logic was correct or the test cases were weak. Please help. |
|
0
DIV2 D using binary search on multiple intervals. CODE. |
| Name |
|---|


