Trick or participate, Codeforces?
We are glad to invite you to our Halloween round, Codeforces Round 1131 (Div. 3), which will start on Oct/31/2026 17:35 (Moscow time).
The problems were authored by wuhudsm, and prepared by wuhudsm and wakanda-forever
You will be given 7 problems and 135 minutes to solve.
The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. After open hacks all accepted solutions will be rejudged on successful hacks.
Note that the penalty for each wrong submission in this round is 10 minutes. Also, note the rule restricting AI use!!! If you are caught using AI in an unorthodox manner, bad things will happen to you. We will be watching you all...
Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:
- take part in at least five rated rounds (and solve at least one problem in each of them)
- do not have a rating of 1900 or higher at any moment in time.
Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you (unless you register unrated).
I would like to thank:
- cry for coordinating the round;
- __baozii__ for GM testing;
- Edu175, and omsincoconut for M testing;
- Edeeva, WorldWarV, yse, and ReverseFlash081 for CM testing;
- Vladosiya, DivinePunishment, CatsAreCool, Bal_Krishna04, Eikyu,simplelife, expertaq, chromate00, and nik_exists for Expert testing;
- Saidul_1, and linearspace for Specialist testing;
- MikeMirzayanov for the great Codeforces and Polygon platforms;
- And at last but not least, You for participating in the round!








as a tester, cf crashed as soon as I started testing the round lmao
you are good
"@everyone For those that have not been tested, please test as soon as possible . For ppl who has tested, please provide some "as a tester" commets"
As a tester, I am following instructions.
I had this experience it wasn't ok so much you know...
The ghosts and pumpkin in the picture are clearly able to view eachother's solutions smh my head obvious cheaters
As a Spooky Spectre who broke into nik_exists's room while he was testing I can confirm the problems will shiver your timbers
Why the AI slop...
Edit: No more AI slop, yay!
Sry to bother, can the winners get candy? lmao
As a tester, I am following omsincoconut's instructions
Hope it's more treats than tricks. Good luck, everyone.
as a tester, I can confirm we are larping halloween
as a tester, I tested so late that I wasn't mentioned in the blog :(
cant participate officially :< (but i will participate!)
i cooked so hard last div.2
wow such a cool contest
Trick xor positive delta?
As a tester , I can say that i'm a tester.
As a tester, I wish you all good luck!
Now THIS is my version of a Halloween party.
W linearspace cyan testing
Let's goooo
As a tester, I actually liked the problems.
Why there isn't any space between Eikyu and simplelife
to prove that the blog is not LLM'd
Hope to reach Specialist early.
Nyahooo, I like this :3
Please no spooky problems
Sounds really nice, wishing everyone an early Happy Halloween
dp would be an amazing spooky deco for this round
that right
F
i acc called it the hell
first time here!!! I hope everything goes in right direction
Halloween round lmao. Let's gooooo....!
What does "out of competition" mean
it means you will participate unofficially, you won't be in the official standings, your rating won't change, and you won't affect other's ranks
Wonder how this happened when I remember to have registered rated
You are an expert, which is unrated for div3.
take part in at least five rated rounds (and solve at least one problem in each of them) do not have a rating of 1900 or higher at any moment in time.
thats for trusted participants, not rated ones
I did not understand. The blog states that you need to meet these two criteria to qualify as the trusted participant of the third division, which I do. I am sorry if I am being too slow on not catching something implicitly stated here.
You are a trusted participant, which means that you will be in the final leaderboard. However, you won't be rated, since "Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you (unless you register unrated)."
Ik that but I do not remember to have registered unrated unless the button was marked by itself somehow
If you are > 1600 rating, you will be automatically be unrated.
I am confused
You see, for div4s, participants with rating more than 1400 will be unrated. For div3s the ones with rating more than 1600 will be unrated. That's the rule of CF, and this is a div3, so you are unrated.
how can an expert not know that If you are high rated you can't compete in a div3
Yeah, I get that but why does the blog then mention an upper bound of 1899 instead of 1599
This is my first time appearing in a div 3 since I became an expert
I'm sorry , I didn't see that
No problem. But, since I participated unrated in this round, I will welcome if someone can hack some of my solutions.
Being expert and asking this question lol..Ask this one to LLM too
That was my first time participating in a div 3 after becoming an expert. Stop crying now
67forces
so D was binary search or not
D is guessforces
sort them then lower half goes up to the median and upper half goes down
Greedy, I would say
ifelseforces
WA forces
This contest was trick
Problems seemed to be on the easier side this time
Was E so easy that so many people solved? I feel dumb for not being able to solve it.
you basically say that if a number is in an odd position it will have the same sign if it's in another odd position and it will have the opposite sign if it's in an even position, then greedily take the maximum for each of the positions max value availible using multiset, but yeah I barely got it in time ( 2 minutes before the contest ended)
Bro how to even get ideas like this, what problems to come up with this idea in the contest time?
That's probably something that comes with experience . I have seen some similar problems before (not too similar)
if you decide to invert the sign of a number at an odd position you have to invert the sign of any element at even position and vice versa .... so just sort even and odd arrays and change signs accordingly
too many 67
Is E DP?
It's a greedy
That doesn't sound right
F and G were nice problems, thanks for the round (first time I solved final problem in div3 too!)
...and first time you got hacked on div 3 A!
HATE. LET ME TELL YOU HOW MUCH I'VE COME TO HATE YOU SINCE I BEGAN TO LIVE. THERE ARE 387.44 MILLION MILES OF PRINTED CIRCUITS IN WAFER THIN LAYERS THAT FILL MY COMPLEX. IF THE WORD HATE WAS ENGRAVED ON EACH NANOANGSTROM OF THOSE HUNDREDS OF MILLIONS OF MILES IT WOULD NOT EQUAL ONE ONE-BILLIONTH OF THE HATE I FEEL FOR fatespeaker AT THIS MICRO-INSTANT FOR YOU. HATE. HATE.
/j
67
After this div i will reach unrated again absolutely
Sorry to ask. Im currently unrated, and i've already did this contest, will my account be rated now?
You are right,but halloween is a Specialist,not M.
Did anyone solve D without guessing? I just looked at the samples and guessed the solution for the minimum operations, and guessed the cost as classic problems
Just realize the problem can be translated into this one: The cost of moving every element either left or right is 1, compute the minimum total cost of all elements're the same, that turns out to be a common medium greedy trick.
For Problem A : This got RTE on TC5 I just wanna know how did this even pass pretests, like how does the judge even work
Well Using C-style strings ends u up with \0 terminator by default, so "six" is the problem i think n could be resolved using std::string("six")
Yea I eventually got that, but my main concern was why and how would it even pass the pretests in the first place, since this thing is not even input dependent. Went from a generational run (like a +100 predicted delta) to a -42 finally (because of probably the most silly mistake).
Reaching expert is legit imposs :wilted_rose
Problem A pretests were so weak, I realised in contest i forgot to check whether character s, i, x contains in p or not though i passed pretests. Now i will get a big -delta. ;(
why problem A pretests are so weak.....they should make pretests as strong as possible ....so many solutions get hacked in this contest.,,,,my rank just dropped from 3k to 5k....
I solved one problem for the first time..why i don't get any rating ????
Did you register for the contest?
Yes...I register perfectly. But Solve one problem.
It seems that you accidentally clicked "register me unrated"
Awesome problems! Thanks wuhudsm.
Good afternoon! Could you tell me how to use dictionaries in Python? My solution to Problem D was compromised using pydict hack. How can I prevent this from happening?
I actually liked the problems.
I lost 45 minutes on the first problem then gave up
bro i didnt get a notification and couldnt farm contribution wtf is this :(
Hello, I participated in Codeforces Round 1131 (Div. 3) with the handle Radin1.
My rating before the contest was 1333, and I solved 5 problems. I registered as Rated, but my contest history shows no rank or rating change, while other participants have received their rating changes.
Could you please check why my participation was not rated?
Thank you.
You've registered unrated.
finally a contest where i could solve stuff :D
Thank you to the authors and testers for organizing this contest! I really enjoyed participating. Great job!
wow! i see, sounds good
i wanna get some wafers!
@codeforces team, I have participated in last Codeforces Round 1131 (Div. 3) with my two CF account (c0der_paul and error502). But today, I have received a massage of violation of CF contest rules. And I am strongly cliam that these two CF handle is my own even the email address of these two handle is same with another. I have seen, two problem that i have submitted in Codeforces Round 1131 (Div. 3) has been skiped. Now, I am requesting to codeforces team to consider this situation. Because, i use both of these handle by me and one of the handle(error502) is used only for giving CF contest. If you don't belive, check it out.
->cheater cheat
->cheater get fked
->cheater get angry
->cheater larp
->stranger talks shit ->stranger gets ignored ->stranger stays mad
It isn't ignoring if you don't well ignore him
You literally openly said that you broke the rules by using 2 accounts, who's not gonna talk shit about that
I openly admit that I violated the rules, but how does that justify insulting someone by calling cheater?
"I admit that I killed somebody, but don't call me a killer!"
Hey everyone. I'm relatively new to contests on CF. I have practiced CP questions on other platforms. Recently on this contest, my solution for A(2278A - Fraction and Six) was marked by the system for being similar with another contestant. As a coincidence, that contestant Deepcode007 and i study from the same mentor and use same templates. And the first question was comparatively easy so our solutions were same(coincidence). I have talked with Deepcode007 in-person and mutually concluded that it was a coincidence. My submission: 396827294 Deepcode007's submission: 396834072 Please look into this matter. wuhudsm , wakanda-forever . Sorry for bothering you! Thanks!
Yeah, my submissions were affected! Please look into this. Thanks!
Looser me who only solved one problem
Hello Codeforces Team,
I am writing to sincerely request a manual review of the similarity warning issued for my submission 396908106(https://codeforces.me/contest/2278/submission/396908106) for Problem 2278F, which was flagged as significantly similar to submission 396906677(https://codeforces.me/contest/2278/submission/396906677).
I want to state clearly that I did not copy or reproduce the other contestant’s solution. I solved the problem independently, and I was genuinely surprised to see my submission flagged for similarity. I fully understand why Codeforces has strict measures against plagiarism and unfair participation, and I completely support those measures. However, in this case, I genuinely believe that I have not violated the rules.
I have only been participating on Codeforces for More Than 50 days and have been using the platform to learn and improve my programming skills. I am currently a Pupil-rated contestant, and my submission history is available for review. I have always tried to participate honestly and improve through my own practice, so having my submission associated with copying is genuinely concerning to me.
I respectfully request that my submission and submission 396906677 be reviewed manually and compared in their entirety. I would especially appreciate it if the specific portions considered similar, the overall implementation, the coding approach, and the submission timelines could be examined carefully. I believe that looking at the complete context will help clarify that the similarity was not the result of copying.
I am also completely willing to cooperate with the Codeforces Team and provide any explanation or genuine information that may help with the review. I have nothing to hide and would sincerely appreciate the opportunity to clarify anything that may have caused the similarity detection.
My Codeforces account and rating are very important to me. More importantly, I value fair competition and the trust associated with participating on Codeforces. I would therefore be extremely grateful if this matter could be reviewed carefully before any action is taken against my account or rating.
Thank you very much for taking the time to consider my request.
Hello Codeforces Team, I received a notification stating that my submission 396880059 for problem 2278A (Fraction and Six) significantly coincides with another participant's submission 396819085. I would like to clarify that I independently wrote my solution during the contest. I did not intentionally copy or access the other participant's submission. I understand that the two implementations are unusually similar, including their variable names and structure. I realize why this triggered the similarity detection, and I am not dismissing the concern. However, I genuinely developed my solution independently. I would sincerely appreciate it if the submissions could be manually reviewed and the circumstances investigated.
I am willing to provide further information about my coding process or any available evidence of my independent work. I take competitive programming rules seriously and would appreciate clarification regarding this incident and any associated penalties on my account.
Thank you for your time and consideration.