Comments

It is easy to avoid being hacked, just make some non-bitwise operation on rng() randomly.

Like this:

std::mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
for (int i = 0; i < n; i++) {
    a[i] = rng() / 3;
}

Do not just divide or multiply it by $$$2^k$$$ or it will just degenerate into taking a subset of rng(). (which is still hackable)

It seems like that it is not O(nq) but O(n^2q) when the string constructed wisely.(tho I don't know if such a string existed.)

revised

Maybe you need 3 mod NTT: convolution_mod_1000000007 (Which calculate the ans with three different MOD and merge them with CRT(Chinese Remainder Theory) to get ans in MOD=1e9+7)

On StarSilkFST on test 1, 5 months ago
0

You should test it with codeforces's "Custom Invocation", which will be more consistent with the actual situation of the online judge.

Just try to make $$$x = 21, y = 2^{5 + 1} - 21 = 43$$$ to $$$x = y = 2^k = 32$$$:

$$$(x, y) = (21, 43) \longleftarrow^1 (42, 22) \longleftarrow^2(20, 44) \longleftarrow^1 (40, 24)\longleftarrow^2(16, 48)\longleftarrow^1(32, 32)$$$

Then you can get the answer by reverse the sequence "12121" -> "12121"

For D, we can construct the whole operation sequences in $$$\mathcal{O}(n)$$$.

Code

And implement the checker in $$$\mathcal{O}(n\log^2n)$$$

Part of checker

If the problem D is changed to this, how would it be rated in the cf rating?

+10

As a tester, the problemset is one of my most favourite one. Good luck, hope you would enjoy it.

just weak system testing

As a tester, hope all the participants can change the color of handle to the next rating level

Why hasn't the implementation code uploaded yet?

E is disturbing for such a strict output format.

GYM -> MUSHUP -> create a new mushup -> click the "Add random problems" under the problem list

This feature is only for mushup, you can access it through:

GYM -> MUSHUP -> create a new mushup -> click the "Add random problems" under the problem list

(seems unfriendly for those who are unfamiliar with MUSHUP? (Including me))

On MikeMirzayanovUser Lists, 17 months ago
+8

How can I remove a list from "Shared with me"? I wanna keep it empty.

Congrats

On MisukiCodeforces Round 967 (Div. 2), 21 month(s) ago
0

As a newcomer, you have 1200 hidden initial ratings, divided into the first five contests sent to you. If you don't perform well in the first 5 contests, the rating sent to you will be reduced, but you will not be given negative ratings. The following contests after first 5 contrsts will directly settle your total rating. So all in all, instead of going up to 783, you're going down from 1200 to 783.

On MisukiCodeforces Round 967 (Div. 2), 21 month(s) ago
0

Thanks, I see it. It seems like that it is easy to find such data.

On MisukiCodeforces Round 967 (Div. 2), 21 month(s) ago
0

Can anyone tell me why my code for D got accepted with time complexity of O(n²)?

Is there any data could hack my solution: 277446088?

How to gain rating in EDU Round? I've droped the rating at almost every the EDU round.

The color you fill the rectangle with is the color that the cells you select are.

There have been so many mistakes you probably can't even count them in Goodbye 2023. Here's just a few: 1.Weak pretests in A. 2.Incorrect and self-contradicting usage of "divisor" in the statement of B. 3.Incorrect and self-contradicting usage of "parent" in the statement of E. 4.F has appeared previously. 5.G doesn't have a proven solution. 6.Author's solution of G is incorrectly implemented. 7.H is too easy. 8.H is in OEIS. --copied from other's comment.

Just turn to that blog and you will find the truth.