| # | 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 | 158 |
| 2 | adamant | 151 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
|
+2
Hi, just my two cents: I think it is much nicer to write rather than Of course this works with |
|
0
Yes, this was also my solution indeed. Only difference I was computing those L[i] and R[i] values using a binary search for each i. But then you're right, it is possible to compute L and R inductively in O(n) time. The point is: can we still solve the problem efficiently if we change that "min" into a "sum"? |
|
0
Ahah, you're right! I meant "min" (I edited the post, thanks) |
|
0
Yes, you're absolutely right. Sorry for that, I fixed the example :) |
|
0
Just curious: what is a bamboo graph? |
|
+3
Thank you very much, that was really eye-opening! This is why I love Codeforces, great community! :) |
|
+8
I'm really striving to understand why the algorithm turns out to be linear instead of quadratic... I know the editorial says "That is because, we could cut exactly max{xi} in each 2 step.", but I can't really get what it means :\ Can you give me a hint? Thanks :) |
|
+6
Solution for problem C: «You can simply guess why such solution is correct.» Can you give me any hint on how to prove this? I had to take that for granted during the contest, but was wondering what is the most elegant way to prove it... |
|
+11
If you're working with intervals (the so called "Interval union-split-find problem"), you can use any data structure that supports fast insertions and deletions. For example, STL's set should work fine. The lower bound is actually reached using van Emde Boas trees, which support every operation in There are some other special cases other than the interval one (cyclic, ordered, ...). See this [1] for a complete reference (it also shows some recent result for the general union-split-find problem) If by "split" you mean the possibility to backtrack, than there are some interesting results by Mannila and Ukkonen [2] (partial backtracking) and Apostolico, Italiano, Gambosi and Talamo [3]. [1] Katherine Jane Lai, Complexity of Union-Split-Find Problems [2] Mannila, H. and Ukkonen, E., The set union problem with backtracking, Proceedings of the 13th Inter- national Colloquium on Automata, Languages and Programming (ICALP 86), LNCS, 226, Springer- Verlag, Berlin, 236–243, 1986. [3] Apostolico, A., Italiano, G.F., Gambosi, G., and Talamo, M., The set union problem with unlimited backtracking, SIAM J. Comput., 23, 50–70, 1994. |
|
0
I could only get the first three pics (using google translate, nothing special: I really can't get a word of Russian). The first says: "Join here in Codeforces". The second: "You! You've got to get on the top-300". Third: "You -- on the top-50" I can't really understand the last one. Any hint? |
|
-6
This was the first thought when I took a look at the standings... |
|
+8
D'oh. You are right! Thank you all, guys! |
|
+1
Why is the best amount to donate some |
|
+12
|
| Name |
|---|


