| # | 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 | Um_nik | 146 |
| 3 | Proof_by_QED | 146 |
| 5 | Dominater069 | 144 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
|
On
ko_osaga →
Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) Editorial, 7 months ago
0
For problem D, could someone explain why Poby and Rekkles are always able to find fresh "B"'s in their strategies? What if the array is (8, 8, 9), then one of them touches 9, then the other two elements are type A... |
|
0
You don't need binary search. Let x be the largest subarray to the left, and y be the largest subarray to the right. You can set a[i] to k — x — y. |
|
0
Out of curiosity, what kinds of other heuristics did people use? I wonder if the problem would be "fixed" by making the complexity requirements more strict to force the simple solution. |
|
0
Very smart. What is the motivation for thinking in terms of decreasing relative frequency rather than increasing it? Is it that the max operations is 2n acts as some sort of hint? |
|
0
Genius! Thank you. |
|
0
How does E work? |
|
+1
We know for all x,y that x ^ y <= x + y. And the equality case is when there are no shared bits between x and y. So you need to add some k to both x and y such that they no longer share bits. |
|
0
What exactly does it mean that you can always move values backwards? |
|
0
I understand why it is guaranteed min_val <= min(floor(sum[0..i]/i)), but why must they be equal at optimal(max-min)? What if this value of min_val makes us have some bad max_val? |
|
+1
One query is sufficient for the first character because if "1" is not a substring, you don't need to check "0" — the string must be only "0"'s. |
|
0
Anyone else lost question C by initializing dp to -1 instead of -inf? :( |
|
0
I think your algorithm is n^2 which is too slow, regardless of correctness. |
|
0
You can use fermat's little theorm. $$$a^{p-1} \equiv 1 \pmod p \implies a \cdot a^{p-2} \equiv 1 \pmod p.$$$ So the inverse of $$$a$$$ is $$$a^{p-2}.$$$ |
|
0
Lol yeah, that solution doesn't look correct. Very interesting that it passed. |
|
+6
F was set way too high IMO. It was easier than both D and E. |
|
+9
F was easier than D/E lol. |
|
+1
Ah yeah, I got that pretest wrong and my mind blanked... I was so convinced that Iris could only score 1 even after drawing it on paper. I guess it is important to observe that the first move is "useless," so by moving first, you are actually at a disadvantage. |
|
0
What was your thought process for realizing that Iris can "win" an extra leaf by "passing" turn to opponent sometimes? |
|
0
Whst if the root is not question marked? |
|
0
Naming convention for B sucks. l and r is really misleading... should have used l/u for lower/upper bound or something. |
|
0
From cppreference:
I suppose the concern is, what if the infinitely precise result of sqrt(a) is n-epsilon for some integer n and small epsilon, that the nearest float is n. |
|
+12
I don't think this is true. Using order 1, n, 2, n-1, ... does not maximize the changes. Imagine the sequence 1, 2, 2, 2, 3. Using the order 1, n, 2, n-1, ... we would get 1, 3, 2, 2, 2. This is two changes. We can get five changes with the sequence 2, 1, 2, 3, 2. |
|
0
I tried alternate most frequent character with all others, it passed pretests. |
|
0
No git link? |
|
0
I found problem A very easy to misread as well. I wish the sample tests were better. |
|
0
You are looping from l to r for every test case. Imagine if there is 10000 test cases, each has a=1 and b=200000. Then you will TLE. |
|
0
You are looping from a to b for every test case. Imagine if there is 10000 test cases, each has a=1 and b=200000. Then you will TLE. |
|
0
Why is Problem G two parts? Is there really a solution for G1 that will not pass for G2? |
|
0
Bruteforces |
|
0
My guess (without reading your code) is that log2(a) — log2(b) was incorrectly rounded up due to precision. |
|
0
I had same solution. I was surprised it passed, because if $$$\frac{\ln a_i}{\ln a_{i+1}} = 2^x$$$ and it gets calculated slightly too large, then it might be rounded up. Not sure if there is a hack that can break this solution. |
|
On
Vladithur →
EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) Editorial, 22 months ago
+5
Let there be cakes with tastiness 1, 2, 2, 3, 3, 4, 4, 4, 5 Bob will want to eat the cakes with tastiness 3 first. |
|
On
Vladithur →
EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) Editorial, 22 months ago
+7
Bob sometimes may want to eat a less tasty cake with a higher frequency over a cake that has lower frequency but high tastiness. |
| Name |
|---|


