Top Comments

Idk why I got it this time, but fine, I don't care.

Dear diari, today I wrote an offence for everyone who worked on a contest for something they can't really influence. I don't know and don't care why admins restricted me from posting, I just want my ability to write toxic comments back.

Don't worry, it's just for 48 hours. I hope you will manage to think before doing such things again.

On lumibons → IOI 2027 Call for Tasks, 2 days ago
+25

International Heuristic Olympiad 2027?

On lumibons → IOI 2027 Call for Tasks, 2 days ago
+20

More like International Non-Batch Olympiad 2027.

+18

gg but it wouldve been nice if you got it with a single accepted submission:)

+17

anything but studying for the SAT

I like how one person gets their appeal and then immediately the sharks are everywhere

zero ball knowledge. cp was fun, is fun and will be fun regardless of AI state. also, cp has real value once you start applying for jobs, trust me. if you are in school, just do cp and attend olympiads. it's the best way you can spend time there for your future perspectives. whether there will be jobs in the future is another question entirely :)

The comments:

1% about the blog
99% about the user's handle

Cornell University Pemguimn, nathanballman, hjk1030

+13

ACPC will be held from 11 December to 15 December. If you have not yet posted your team information, please do! I wish everyone the best of luck and cannot wait to meet all of you!

+13

Thanks. My problem.

+11

N = 4, X = {1, 1, 1, 3}, Y = {2, 1, 4, 1}. Answer should be Draw.

+10

Greedy Approach will not work in this case. Try to map the problem to the House Robber problem.

And the reason why Greedy algorithm fails here is because skip doesn't mean a +0 but toggling the authority to someone else for later spendings.

+10

Same qwq

+10

Congrats on 97th* (standings were weird, mb) as a newbie, curious how you did F? I had an idea, but I feel I overcomplicated it too much and was wondering if someone so strong as yourself could explain.

+10

Idk. I like my scoreboard. I like the adrenaline rush from being in 30th place for like 20 minutes and then watching as it decays down and down and down while I am hardstuck on E

not to be captain obvious but judging based on your rating you haven't broken through the 1400-1550 plateau

On lumibons → IOI 2027 Call for Tasks, 37 hours ago
+9

Yep, International 0, 20, or 80 (equivalent to 100 on brutal god-level 6 non-batch heuristic problems) Olympiad 2027

Congratulations to ItsNotMeItsYou!

mambo has probably (hopefully) been temp-banned multiple times

+9

If the initial string isn't alternating, then it's always possible to keep the string non-alternating after an operation, provided that $$$n$$$ is even.

For simplicity, let's say the string has the longest contiguous span of 0s. Let $$$l$$$ be the length of the span ($$$l \ge 2$$$).

  • If $$$l \ge 4$$$, you can simply remove one 00.
  • If $$$l=3$$$, the string should contain 1000 or 0001 (because $$$n$$$ is even). Here you can apply the operation on 000 and you'll have 11 as the result.
  • If $$$l=2$$$, there are three possible cases.
    • If the entire string is 00, just remove them, and you are done.
    • If the string contains 0010 or 0100, then apply the operation on 010 and you have 00.
    • Otherwise, the string should contain 0011, 1001 or 1100. Just remove 00 and move on.
+9

this introduces unintentional cheating though. You know how people love to discuss about contests the second its over, even for usaco which implements exactly this idea? unfortunately, many people who have friend groups will naturally just know "c is dp" or something along the lines of that because they use discord, which most people use anyways. It works for you because you are not Korean and probably do not have contact with many Koreans, who are the main audience of DOJ, but doing it on a site that you have contact with the people outside of the site makes it inevitable that something will be leaked at some point, and you cant just ignore that completely when you do the contest. Even if you alone can be disciplined enough to not open discord for 3 days, saying that about everyone is far harder to be confident in, unintentional leakage will happen in this scenario, while it cannot in the current scenario (being off discord for 2 hours when you're focusing on a contest vs 3 days is completely different).

On lumibons → IOI 2027 Call for Tasks, 2 days ago
+8

More like International Stupid Subtask Implementation Olympiad 2027

I hope sub 400000000 wouldn't be Skipped

ItsNotMeItsYou Congratulations !!!!!

Probably for cheating or suspicious activity, and about using vscode extension alone usually wouldn’t disable an account unless it automated submissions or abused the system

The ultimate not found error

I got the palindrome >:)

On bharatSati → Built chess.com But For CP, 47 hours ago
+6

NGL, website's design is very goofy

i miss that kind of misery

would be better if it is an Accepted submission, but congrats! hope that i am still breathing when 500,000,000th submission happens...

+6

Down with weekday contests I can't do!!!

I think having a short window can help with the cheating issue a bit, even if people don't deliberately cheat unintentional leakage can still happen

bump!!! contest is in 2 weeks!!!!

The problems solved in private contests can't be checked without registering for them, so ig it might have been solved in a private contest.

On Omarr. → Queueforces strikes once again, 44 hours ago
+5

Add the problem you want to submit into a mashup in gym, then submit there. (I think) This works because gym has a separate queue

+5

Nice contest, here are solution sketches for A-G:

A. Simulation, $$$O(l+a+b)$$$

B. Sort the array, and for every block of $$$k$$$ consecutive elements either eat them individually or make juice, whichever is optimal, $$$O(n \log n)$$$ due to sorting

C. The answer is YES if and only if $$$n$$$ is even and the string is not alternating, $$$O(n)$$$

D. Right to left DP, store the best possible score for each player (max for Sunny, min for Aubrey) if they are currently on the left, transitions are $$$dps_n = \max(x_n-y_n, 0)$$$, $$$dpa_n = \max(y_n - x_n, 0)$$$, $$$dps_i = \max(x_i - y_i + dps_{i+1}, dpa_{i+1})$$$, $$$dpa_i = \max(y_i - x_i + dpa_{i+1}, dps_{i+1})$$$, answer is based on $$$dps_1$$$, $$$O(n)$$$

E. Binary search on the answer, for $$$m$$$ steps the smallest possible position of Aubrey where $$$y = \lfloor m/(k+1) \rfloor$$$ and $$$z = m - y(k+1)$$$ is $$$(2^y-1)(k+1-z) + (2^{y+1}-1)(z)$$$, $$$O(\log^2 k)$$$

F. Create an auxilliary directed graph of $$$2n$$$ nodes where $$$n$$$ are a "black mode" and $$$n$$$ are a "pink mode" which represent the next edge color you must traverse to keep the path alternating, and check if there is a cycle in it, $$$O(n+m)$$$

G. Sort the array, the optimal set of pictures to choose for a tournament is the first $$$n/2$$$ and last $$$n/2$$$, the optimal order eliminates the largest elements last, brute force on every tournament size, $$$O(m \log m)$$$

Trivial bonus for G: Solve it with update queries

Spoiler

He is not wrong. CP doesn't bring me any benefits at this point. It only helps you in the initial stage of your career, or in your university life, when you are participating in ICPCs. I m past both. I don't have enough time to practice, nor any benefits even if I achieve great things in CP now. Growth is nearly impossible, because I can't practice enough hard problems.

At this point I am only doing CP, part of it is stubbornness, mostly it is because of a feeling of emptiness. At this point CP is the only thing I have left that gives me any sense of meaning in life. It is because I can't substitute CP with anything else that gives me the same sense of meaning as CP did once, I can't leave it behind. I don't even enjoy it anymore

it's its username, not nick, mate

It was CE :)

Btw alts are prohibited by rules.

+4

Actually there is a simple solve for F: We can decompose the given graph as follows: a vertex $$$2u$$$ in the new graph will represent vertex $$$u$$$ from the original graph if we reached it via a black edge, while a vertex $$$2u + 1$$$ will represent vertex $$$u$$$ if we reached it via a pink edge. Once the edges in new graph are added correctly, we simply need to check for the presence of a cycle within each component of the decomposed graph (i used translator so sorry if smth is not understandable)

+4

Pre-AI times it was actually quite fun, but now I don't think it's worth it anymore

+4

No? Both are $$$O(V + E)$$$. (Unless you were talking about expensive not in terms of runtime?)

+4

Not to mention clarifications (while they can still be done) are much more annoying with windowed contests.

On esc_qwq → NOIP 2026, 8 hours ago
+4

I am a LOSER in NOIP 2026.

The LOSEST loser.

+4

can someone explain H?

Just my status when I made it, and still true to this day. I don't even have the ability to get a girlfriend yet.

We will be realeasing 2025's camp contest. Feel free to participate in them!

On esc_qwq → NOIP 2026, 35 hours ago
+3

喵!

On esc_qwq → NOIP 2026, 35 hours ago
+3

Well first you should be a chinese student. If you want to participate in, you should ask your teacher in your school.

but only in the evening

So I ask, am I just dreaming?

+3

I think the other issue might be the live scoreboard — those taking it earlier would have much less information than those taking it later

20% of them are from iran!

+3

For me, a windowed contest (like USACO) is a fundamentally different experience. I think they can have benefits but shouldn't replace existing live contests.

+3

This still brings more benefits to those who take the contest later.

First off, nice solution. Thanks for sharing it.

Now, I don't like to post negative comments on blogs that took some work to put out but I just find this one to be too confusingly written and most of the pictures in it to be distracting.

It also just keeps on going for some reason. It very well could end after stating lemma 1. A proof for it is barely needed because it's pretty intuitive why it's true (and the argument is overcomplicated imo).

The rest of the blog gets into the weeds of maintaining the data structure without first giving any overview of the approach. Any cyan+ coder will find the details redundant if u just gave an overview of the idea. And as much as it gets into the weeds, it does not provide example code...

On Chebypelka → Глеб Тяпков, 11 hours ago
+3

CumBack

I'm sorry, I know I'm too much

I love you so much that it's dripping

Hello, I restored asap, sorry for that.

+2

My account ilia_rr just got disabled mid contest. Is there an official procedure for appealing the suspension or contacting the administration to have my account reviewed?

Hello, I also participated in the div3 as https://codeforces.me/profile/lydxn, and my account was disabled during contest. None of my submissions were copied or cheated, so I believe it was a wrongful offense. Could you review my account please? Thanks. Vladosiya

+2

holy difficulty

+2

Guessforces

I swear it wasn't there when I first saw it.

a mediocre olympiad kid is gonna get nothing

ofc. that's the point, you need to become top tier and win something, then it makes sense. otherwise there is no point to do it as you said, agree.

The kind where you are nice to me

On esc_qwq → NOIP 2026, 35 hours ago
+1

Thanks!

p=np lol

On M.Bemanali → Submission #400,000,000, 29 hours ago
+1

what is his rating graph bro

+1

Is this a real div3 contest?

+1

C was a nightmare to guess

+1

What are these names man

"You lack basic critical thinking " -> thats why my IQ is 157

I just alr said in blog that sometimes if im in rage ....

its not ur business, pls stop

Nowadays, my mental health is not stable, So many cheaters, contests problems... , not reaching goalsin CF ..., couldnt managed to quit CF & grinding qoj.ac ..... and EXTRA random kid saying non-sense

"ps threatening admin to do it again if any action is took. then he is a brat; thats a fact and u shouldnt feel bad if someone says that to u" -> wow, so brats like me should be bullied too !!!! I'm BRAT, poop, useless, larper, idiot, loser, dumb, bastard, bozo, rude, dirtbag, fool, jerk

What i did in comments and got warned 2nd warning was for -> negative comments in a contests blog. like "problems are garbage, ai slop problems ......"

in all of the 3 comments I criticized the contests problems.
and I'm worthy to be called as a "brat" by some newbie.

u're saying like I did some huge mistake and I should be bullied by community

ok from now on i'm brat cuz i wrote criticizing comments !!

REPLY FOR THE MSG BELOW:

could've written 30+ lines of reason. But in that moment I was barely writing

no point on arguing with BRAT like me. u'll gain nothing

+1

I think I arrived at a complete proof.

Odd lengthed or alternating strings are bad, so we talk about even lengthed and non alternating ones.

Suppose we pick the pair (i, j) and call P = s[0 ... i — 1], X = s[i + 1 ... j — 1] and S = s[j + 1 ... n — 1]

Claim: We can force PXS to be non alternating (empty strings are assumed to be alternating)

Assume, that s[i] = s[j] = '0'

The only way PXS can be alternating iff P, X and S are alternating and X connects to P and S with the same bit before flipping.

First, assume that at least one of P and S is non empty. Assume that it is P and S is empty for convenience.

The only problematic triplets are 101 and 000. However, 101 is not possible under our assumption because s itself would be alternating in this case.

In 000, simply pick any but the middle 0 and the resulting string contains at least one equal and adjacent pair.

If both P and S are empty and n >= 4, we can select a suitable same bit from X to reduce it to the previous cases.

If X is empty, then there must exist only one pair of 0s and that too adjacent ie only one occurrence of "00". Even in this case, we can reduce the string to an empty one.

So, I think the conditions are sufficient. I would be happy to have someone hack this.

+1

I am also talking about induction. I just wanted to prove the sufficiency of the two conditions. Necessity is trivial.

+1

BTW I asked how YOU did F. Not how AI did it for you :)

shahab

+1

SCC is only a bit heavier and gives a bit extra constant factor. though they're the same asymptotic complexity of $$$O(V+E)$$$. i think using SCC is still an overkill though since topo sort is simple. (。・ω・。)

I made it!

The AI you use for cf contests should do just fine at all of those

On esc_qwq → NOIP 2026, 14 hours ago
+1

harder than IOI.

As I stated earlier, previously I only cared about the solve count, whereas now I care about mastering the problem itself

I hope I can solve ABCDE.

Dripping from my arms and such

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

orz ihanif

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

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

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

true for the fun part, but no one wants to waste their precious time for a thing where outcomes can be mediocre...

nuanced for the olympiad part, cuz first of all not all people are in their school rn, and it makes no sense for a grown ahh adult to do cp when they need to look for a job(normal DSA is sufficient, sde jobs are in the ruin anyways) and secondly, even if they are in school then it is much better putting ur efforts into things that matter more like grades, entrance exams...

the olympiad thing only works if u are in the top people from ur region, a mediocre olympiad kid is gonna get nothing

useful

On AndrewHazem → Contest #1, 46 hours ago
0

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

On AndrewHazem → Contest #1, 46 hours ago
0

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

Same for today as well.