close

Comments
On waveletsCerealCodes 2024 Summer Contest, 21 month(s) ago
0

Can you make sure you’re logged in before clicking the link?

On waveletsCerealCodes 2024 Summer Contest, 21 month(s) ago
-6

Hi, what's the bug?

On waveletsCerealCodes 2024 Summer Contest, 21 month(s) ago
+2

The contest is in a week, sign up soon!

On bufferingCodeforces Global Round 26, 23 months ago
0

We initially solved this problem for odd $$$n$$$ and extended it for even, so it might have been that for the setters it was easier to extend the logical line of reasoning for the solution. I think more testers could have been beneficial (at least higher rated ones) to get a better sense of G, we received some comments about hard implementation but nothing that made us worried about the difficulty. We’ll try to get a more wide sense of difficulties next time.

On bufferingCodeforces Global Round 26, 23 months ago
0

Yes, I think G was a bit too hard for its position (or maybe F was too easy). We were considering having to solve F in n log n (as a subtask or just on its own), maybe this would have helped -- but it would have also increased implementation.

On bufferingCodeforces Global Round 26, 23 months ago
0

Auto comment: topic has been updated by buffering (previous revision, new revision, compare).

Maximum independent set (a set containing the maximal amount of vertices where no two are adjacent). The abbreviation is explained in the editorial now.

On bufferingCodeforces Global Round 26, 23 months ago
+8

This was a really common question asked, "bbaaaabbb" also works.

On cryCodeTON Round 8 Editorial, 2 years ago
0

No need to say sorry, just pointing it out :)

On cryCodeTON Round 8 Editorial, 2 years ago
+3

This is also explained as Solution 2 in the editorial!

On cryCodeTON Round 8 Editorial, 2 years ago
+11

There are only 2 things the MEX can do: increase or stay the same (it can never decrease since we are looking at larger and larger prefixes).

In the case of a positive difference, if the MEX stayed the same then it would have to be greater than the current value, which is impossible because that value had to appear earlier on in the prefix. Since the MEX is calculated on a permutation that can’t happen. So it has to increase.

In the case of a negative value, the MEX has to be less than the current value. But if it increased that means the current value changed its MEX, meaning its new MEX is at least (current value + 1) and it is actually greater. So it has to stay the same.

Wow! We hope you enjoy it :)