| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 152 |
| 3 | Proof_by_QED | 146 |
| 3 | Um_nik | 146 |
| 5 | Dominater069 | 144 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
|
+11
This solution comes from cancaneed. There were some Chiness comments before which were deleted by the system. I'll explain this below. We first define something:
We have this transformation below: For the guesser and the hider are maximizing the probability of winning, so we must make the partial of $$$q$$$ and $$$p$$$ be $$$0$$$, we'll get those: The result should be: |
|
0
Thank you very much, I've added the code for |
|
0
非常感谢,已经添加代码。 |
|
0
OH, You are right, thank you very much, I've passed it. |
|
0
What does your I just used your code and added my own code |
|
0
For IEEE754 Emulator, I did exactly the same thing, but I only got 85%. Could you just post your code? |
|
0
Could you just give me a web about Taylor Shift problem? When I used google to get the results, all I got are pages realted with Taylor Swift. |
|
+8
Thank you very much, I've added the code for balls. |
|
+19
Update 2024-11-2: The problem Update 2024-11-10: The problem Update 2024-11-10: The problem Update 2024-11-10: The problem Update 2024-11-11: The problem Update 2024-11-12: The problem I'm trying to solve those problem below (unsolved):
The problems not in the list have been solved, if you want the code, here is the repo: IEEExtreme-18-code. If you know Chinese, here is a tutorial for those sovled problems: Tutorial of Chinese Edition Any ideas related to the unsolved problmes are welcome. |
|
0
Fixed. |
|
0
I just have a smae solution, if you want the code, here is my implementation: halving.cpp. If you know Chinese, here is a more detailed tutorial with Chinese: Tutorial of Chinese edition. |
|
0
Here is my code of star road: star_road.cpp I will post the tutorial about 12 hours later. I should have posted it a few hours ago, but you know codeforces just occur sever dump. BTW, if you know Chinese, you can read the tutorial of Chinese editon: Tutorial of Chinese edition. Tutorial is coming: We can solve this problem with segment tree and merging of segment trees. First, we need to discretize the stars to make them between $$$[1, len]$$$, $$$len$$$ is the number of different stars. Then we do dfs from any node, when we reach a node, we build a segment tree for this node. For the leaf nodes of the segment tree within $$$[l, l]$$$, it will hold two values:
For the non-leaf nodes within $$$[l, r]$$$, it will hold two values:
When we start going back, we can get:
We use $$$star[u] - 1$$$ and $$$star[u] + 1$$$ to make sure $$$star[u]$$$ can be picked, so if we pick $$$u$$$, we will get $$$ans = max(ans, son[i].LIS + 1 + son[j].LDS), i \ne j$$$, and we can sort the sons by $$$LIS$$$ and $$$LDS$$$ to avoid the enumeration of $$$i, j$$$. How to get the part if we don't pick $$$u$$$? We can solve this part during merging of two segment trees. During the merging of segment tree $$$a$$$ and segment $$$b$$$, we'll be in a section $$$[l, r]$$$, we can get the maximum value of $$$LIS$$$ within $$$[l, mid]$$$ from $$$a$$$ (or $$$b$$$), and $$$LDS$$$ within $$$[mid + 1, r]$$$ from $$$b$$$ (or $$$a$$$). , then those two parts can be combined, and those combinations include the part if we don't pick $$$u$$$. In other words, we can get $$$ans = max(ans, LIS[lc[a]] + LDS[rc[b]], LIS[lc[b]] + LDS[rc[a]])$$$. When we finish all merging of node $$$u$$$, we must do two updates:
|
|
0
Yeah, 100%. |
|
+3
Actually, my algorithm's time complexity is $$$ O(n^2) $$$, too. However, I got a $$$ TLE $$$ at first. Then, I just try to optimize it. I don't calculate all the sub-strings at first; I just calculate sub-strings with one, two, ..., n characters. For every type of sub-strings, we calculate the number of components, this may run more quickly, but with the same time complexity $$$ O(n^2) $$$. Here is my code cheap_construction.cpp. This is rather close to $$$ TLE $$$. The slowest sample got $$$ 946ms $$$. |
|
+3
You man not consider the |
|
0
Let's make I'll explain how to solve this when For Therefore, we just need to consider which node meets this. We just need to consider during one turn the minimum depth, let's call it We can calculate by this code: For the rest, it's similar. |
|
0
I made the same mistake hah I thought about clean cnt with n but I didn't fix it |
|
On
ch_egor →
Editorial of Codeforces Round #594 (on the problems of Moscow Team Olympiad), 7 years ago
0
You are supposed to swap reduce(decrease is better) and increase in the first line of your reply. |
|
+6
First, let me tell you why we are setting ai = max(ai, -bi):let's talk both the situations: ai >= -bi and ai < -bi , if ai >= -bi, that means ai doesn't change, when ai < -bi, the problem let us ensure r > 0, when we do this project i, r will be r + bi(bi if negative), so it's obviously why we let ai be max(ai, -bi), we must ensure r+bi > 0, that means we let ai = -bi(the case 2), we can decrease the judgement.Second, why sorting in the order of ai + bi can work? This problem trouble me for a long time at first, when we let ai be max(ai, -bi), we can ensure ai >= -bi, that means ai + bi is not negative, but it can be zero, if we can't do project i, for j (aj + bj < ai + bi) we must can't do all of this, too.That is because aj is greater than ai or not, if aj >= bi , we can't do project j, if aj is smaller than ai, and aj + bj < ai + bi, we can't do project i that means r < ai, when we do the left thing, r will be smaller, that means we can't do project i, either. So this can work. |
| Name |
|---|


