| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | Radewoosh | 3415 |
| 8 | Um_nik | 3376 |
| 9 | maroonrk | 3361 |
| 10 | XVIII | 3345 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
0
In B,
How to prove that we can always build for m = 0? |
|
+5
The same trick doesn't work if instead of adding 1e-14 we multiply by 1.00000000001 does multiplying not increase precision? |
|
0
Yeah why? also what does adding 1e-14 do? |
|
0
In C, how did this formula come? |
|
0
Yes, I second this |
|
+8
I think they studied in the same school, although I'm not sure |
|
0
$$$0≤a_i≤n$$$, so the size of "temp" should be n+1 |
|
0
For G, would the solution still be the same if in each operation we only delete the edge connecting a and b and add the edge connecting a and c? |
|
+94
You have to use (int)ceil(1.0 * n/2), because large values will be in Scientific floating-point notation Try n = 1000000000, it outputs "5e+008" |
|
0
Come on man, don't sabotage everyone's effort like that |
|
0
You can keep track of the number of 1-1 books in the optimal solution, sort the unchosen books, and take the smallest m-k books, print them along with the chosen books |
|
0
How do I make my $$$nlogn*logn$$$ Binary Search + Prefix Sums solution pass on C? https://mirror.codeforces.com/contest/1175/submission/85123220 |
|
+1
I also did it with Inclusion-Exclusion https://mirror.codeforces.com/contest/1295/submission/84912597 |
|
+4
Can someone help in knowing why B was so hard for me? I didn't struggle on C as much as I did in B. Please help me realize what's wrong in my practice and thought process. |
|
0
if k is odd then we can't choose the Nth element to be part of even indices, similarly if k is even we can't choose the Nth element to be part of odd indices |
|
0
I am writing an explanation vis-a-vis the correlation of the sets $$$V_0, V_1, V_2$$$ to the above algorithm, Let, $$$V_2$$$ represent the set of all the removed vertices. Now, the vertices that only have incoming edges from $$$V_2$$$ are the "roots" of a sub-graph that has been disconnected from the initial graph, let they be represented by the set $$$V_0$$$, the vertices in $$$V_0$$$ no longer have any incoming edges, therefore, they can't possibly be the endpoints of a path of length 2 or more, so according to the algorithm they don't have to be removed. Similarly, all the "neighbours" of the vertices in $$$V_0$$$ need not be removed (they are the endpoints of paths of length 1), these "neighbours" form the set $$$V_1$$$. P.S after reading this you can refer to the editorial for the upper-bound on the number of elements in set $$$V_2$$$, it's exactly $$$4n/7$$$. |
|
0
Please correct me if I'm wrong, but shouldn't we take the back edge connecting the closest ancestor? If we take the one connecting the furthest ancestor, then wouldn't the cycle have multiple back edges? How will it then be a simple cycle? Edit: My definition of a simple cycle was flawed |
|
+3
Exactly, a good math background is conducive to better ratings at CP platforms. |
|
0
It dosen't work, why? |
|
0
Oh, thank you! |
|
0
Please correct me if I'm wrong, but consider $$$h=10$$$ and $$$c=1000000$$$ Wouldn't the average temperature for odd cups be strictly increasing in this case? |
|
+4
Please suggest more problems like D that involve a similar prefix sums approach(adding to a segment). There was a question in a recent Div 3 which involved something similar, but I am unable to find more of those questions. |
|
0
|
|
0
You need to add a break at line 39. https://mirror.codeforces.com/contest/1320/submission/79646922 |
|
0
I'm 15 and hoping to be blue :) |
|
0
It's in queue. Wait for a while |
|
+1
Can anyone suggest more problems like D? The prefix sum approach seemed very cool |
|
+1
Elegant problems and short, concise statements. Thank you for this fine contest! |
|
0
Weak pretests for Div2A unfortunately :( |
|
+3
Nothing better than rick rolling myself while quarantined :) |
|
-10
Wow, I never noticed the beta in the logo. |
|
+3
Your pepe profile is very haunting |
| Name |
|---|


