| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
|
On
Magolor →
Codeforces Round #502 (in memory of Leopoldo Taravilse, Div. 1 + Div. 2) —— Editorial, 8 years ago
+12
And one more solution for D: 41376803 It has O(22n + q * n) complexity and the most interesting part — it doesn't use that k is relatively small. First, as in mouse_wireless's solution, we want to count Wu value for all possible masks and create a vector prew containing pairs (Wuvalue, mask). Then we sort this vector in increasing order and now we are ready to another precalc) For each possible string t we build a vector based on prev: we just change mask to ( Now, for answering a query, all we need is binary search a vector related to given t. It is the part which has a O(q * n) complexity. Unfortunately, during the contest I got TL4 with this solution beacause of slow IO. Thanks to SHAMPINION, who advised me to add two stirngs of code, which make IO faster and after that the solution passed in 1.7 s. |
|
+31
If one can solve all the problems, will he be hired by Elon Musk? |
|
0
And.. here another post which has over 100 upvotes is |
|
0
Is it OK if a contestant from my city (Izhevsk) has received a t-shirt 4 days ago, but I still haven't? |
|
0
I beware to say a wrong thing, but I think I could prove that if we fix some point of convex hull, then take two points next to the fixed one clockwise, we should do such process: |
|
+3
The same thing to me) |
|
+3
I've surprisingly found mine in a spam folder. |
|
+39
Nice example of how are Russian and Polish close |
|
0
So why the complexity is not O(n log n)? Unfortunately, I haven't learnt how to write formulas in comments yet. |
|
0
In 639D - Bear and Contribution, that does "iterate over possible values of x from lowest to highest" mean? Don't we need to sort all these values first? |
| Name |
|---|


