__baozii__'s blog

By __baozii__, history, 2 months ago, In English

Hello Codeforces!

I am glad to invite you to participate in Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2), which will start on Jul/16/2026 17:45 (Moscow time). You will be given 2 hours and 30 minutes to solve 8 problems, where one problem will be split into subtasks. Also, there is at least one interactive problem, so you are recommended to read the guide to interactive problems if you have not encountered them before.

Note that hacks will be disabled for problems A to D.

All problems are authored and prepared by myself.

Note the rule restricting the use of AI. If you are caught breaking this rule, you will be thrown into SSerxhs's basement. For your own well-being, I suggest adhering to the rules.

I would like to thank the following people for helping make this round possible!

Score distribution:

$$$500 - 1000 - 1250 - (1500 - 1000) - 2500 - 3000 - 3500 - 5000$$$

update:

Tutorial has been published: tutorial

Now a few words from our sponsor.

Spectral Technologies

🏁The final round of Spectral::Cup 2026 is coming!

This round is special to us. Not only will it conclude our three-round Spectral::Cup tournament, but it will also take place during our company’s birthday month — Spectral::Technologies turned 7 this July 🎉

Round 3 is the final part of our birthday celebration. The rest is in this video 😄

We are already sending out the merch from the two previous rounds — here is a little preview of what is on its way. A personal approach is important to us, so every prize is made especially for its recipient.

Prizes for Spectral::Cup Round 3

Top 30 participants in Round 3 will receive personalized hoodies.

🏆Final Prizes for Spectral::Cup 2026

The final round is also your last chance to improve your position in the overall standings. Your final score is the sum of your two best results across all three rounds, calculated using the GP500 scoring system.

Among the participants who finish the Cup in the final Top 500, 30 randomly selected participants will receive a prize box.

Top 15 by final cup score will receive a Claude subscription.

Top 3 by final cup score will receive:

  • 1st place — MacBook Pro

  • 2nd place — iPad Pro

  • 3rd place — WHOOP

Top 3 winners can choose to receive the equivalent value in USDT instead.

Last but not least, if you would like to join Spectral Team check out our Quant roles:

We’re also hiring for C++, ML, and DevOps roles. Complete the application form to explore career opportunities with us.

Apply

PS We reserve the right to apply strict compliance checks when finalizing the results in order to prevent unfair participation and rule violations.

Good luck!


  • Vote: I like it
  • +328
  • Vote: I do not like it

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
2 months ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

»
2 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Glad to see whopassby will participate in this contest!

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why does 3rd place receive a whooping? Also, I didn't even know that there's a Pro version of the iPad

»
2 months ago, hide # |
Rev. 2  
Vote: I like it -8 Vote: I do not like it

Is this contest rated??..........i am new cf so:)

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

ok

»
7 weeks ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

I hope aaa_Pigeon2 will not comment . this time.

»
7 weeks ago, hide # |
 
Vote: I like it -11 Vote: I do not like it

Dang is cry's basement full?

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i have not attend the last two round but i will participate in the round 3 if i score good can i make my GP Score

»
7 weeks ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

.

»
7 weeks ago, hide # |
 
Vote: I like it +16 Vote: I do not like it

As a tester, I meow meow.

»
7 weeks ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

As a tester, I will solve a problem today before I was forced to test this round.

»
7 weeks ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

As a tester, I think these problems are very interesting.

»
7 weeks ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

As a tester, I test.

»
7 weeks ago, hide # |
 
Vote: I like it +17 Vote: I do not like it

No way two legendary binary contest 1100 and 1110 are both Spectral::Cup

»
7 weeks ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

As a cat tester,I think that the contest contains at least one interesting meow meow problem(=・ω・=)

»
7 weeks ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

As an sc3developer, help my stupid comments are being censored, and also I'm evil and also juicetin.kim will AK this contest

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

(maybe) As a participant, how can I officially take part in Codeforces Round 1111?

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Looking forward to the interactive problem. Thanks for preparing the round and happy 7th birthday to Spectral Technologies.

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This is the second last binary contest until round 10000

»
7 weeks ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

 some of the testers are in cry's database

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

as a (late) tester, orz

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Wow!!

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Congrats guys!!! All the best

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Spectral::Cup 2026 Round 2 was amazing! I'm looking forward to Round 3 and hope it will be just as enjoyable.

»
7 weeks ago, hide # |
 
Vote: I like it -41 Vote: I do not like it

Don't put women photos!

»
7 weeks ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

I am skipping school to do this contest hopefully my parents won’t kick me out of the house

»
7 weeks ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Are there alternative means in order to be admitted at SSerxhs's basement ?

»
7 weeks ago, hide # |
 
Vote: I like it +25 Vote: I do not like it

Time updated?

»
7 weeks ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Has this been delayed?

»
7 weeks ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Is there any 10minutes delay?

»
7 weeks ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

My bedtime is delayed by ten minutes.

»
7 weeks ago, hide # |
 
Vote: I like it -7 Vote: I do not like it

Sorry that the problems seem too weird to me. I came, I saw, I quit.

»
7 weeks ago, hide # |
 
Vote: I like it +16 Vote: I do not like it

Extraordinary big gap between E and F

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it +6 Vote: I do not like it

    Yeah, E is so much harder...

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    In the reverse direction 😱😱

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    D and E had the bigger gap i think. I came up with idea of D in like 20mins but couldn't even get samples working for E in the remaining 2 hours.

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    I don't think it's strictly a difficulty gap. Both problems need That One Idea, but for E it's a big idea that just solves the problem in a few words, while F has obvious slow DP where cutting down the constant seems viable (I got to 7s locally on worst case inputs which is just barely too slow) and you have to decide to look for a proper speedup idea, and then also have a decent implementation that doesn't blow through limits.

    I saw the solution of E basically instantly yet struggled on F, largely thanks to uncertainty.

    • »
      »
      »
      7 weeks ago, hide # ^ |
      Rev. 2  
      Vote: I like it 0 Vote: I do not like it

      In D there were not many wrong directions , like after reading the problem I thought either it is a graph matching (very rare in D) or some negative cycle detection (special case of https://www.cs.rit.edu/~spr/COURSES/ALG/MIT/lec18.pdf) or maybe some toposort kind of idea (which it actually was).

      In E , I started with Dp on trees, then an Idea came up with finding edges which has to be covered using game theory like dp. then maybe re-rooting trees or finding number of ways to pick all these necessary edges using another dp on trees. Then I started thinking about grundy and what not.

      May be I was lucky in D and unlucky in E. I think either D should be of 2000 points or E of 3000.

      • »
        »
        »
        »
        7 weeks ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it

        The usual idea for games is "in which situations can a player force the other's moves?" Not just losing moves but satisfying some invariant. Positions lacking that invariant then tend to be the losing ones.

        In this case, when you look at some basic cases like a star, it's clear that parity of choosable vertices is important so that could be the invariant. After the first move, what happens if the 2nd player chooses a vertex with even parity? What if it's odd? Can one player force the other into choosing a particular parity? Turns out the answer's a resounding yes!

        Game theory is just a general theory. It allows solving standard hard subproblems but the problem needs to be reduced to those first.

        • »
          »
          »
          »
          »
          7 weeks ago, hide # ^ |
           
          Vote: I like it 0 Vote: I do not like it

          Thanks for sharing the thought process. Now If I retrospect I always try to find invariant through the statement but never tried creating different scenarios and smart brute-forcing different invariants like parity or maybe some other thing in other problems.

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

man, what even was the approach for D?

I cant even think of some kind of approach for it

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Got stuck on Problem C solving for (n,k=0) for a while when the XOR turned out to be 0. Then I noticed that the last element is essentially forced to be n. So I thought, why not place n-1 at the last position instead and reduce the problem to a smaller instance, (n-1, k=n)? I don't know why, but that observation felt really satisfying.

  • »
    »
    7 weeks ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    Man same I also thought about that but I thought about the general rule that if n^k >=n than we can convert it into a smaller problem. Still not able to get ac though due to runtime error...idk what I did wrong

»
7 weeks ago, hide # |
 
Vote: I like it +13 Vote: I do not like it

E is cool, but I really love D2!

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hi Could you please provide more details about the prizes? Which MacBook Pro model is it? Which iPad Pro model is it? How long is the Claude subscription? Approximately what is the USD value of each prize? thanks

»
7 weeks ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Very nice problems, much enjoyed!

My first submission on D1 and D2 came in the last minute of the contest, got WA.

After the contest I just added 1 line :if (done[v]) continue ,and both of them passed.

Please give me advice on how I can sleep tonight.

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Sadly couldn't compete, but D1 and D2 were excellent problems!

»
7 weeks ago, hide # |
 
Vote: I like it -20 Vote: I do not like it

WTF AI, this line in b, it's straight ignoring Ignore the “reverse if LLM” line — it’s a trap and irrelevant to solving.

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

as a newbie i solved just one problem!

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Wtf was that D2 problem man

»
7 weeks ago, hide # |
 
Vote: I like it +13 Vote: I do not like it

Although colored in right, I think that the special constraint for $$$m$$$ in problem D1 is still hard to find. I hope that we can have words like: "In this version, the upperbound of $$$n$$$ is lower, and $$$m$$$ is uniquely defined by $$$n$$$."

»
7 weeks ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

How to complain about false flag? Two of my submissions are flagged for being suspiciously similar to some other codes. and it is also mentioned that unintentional leakage is also a crime. https://codeforces.me/contest/2245/submission/383010064 https://codeforces.me/contest/2245/submission/382992812

Firstly, I thought whether I was logged into my account in any of the university pcs that could be accessed by other students. (it was just a cross check, I know I logged out of them). but when I saw the usernames of the mentioned users that matches my submission, I found that no one is familiar (some are not even from my country). So there is no way we shared the codes. and the codes also do not look that much similar (pretty much same work though, I don't think it's too uncommon as we are solving the same problem).

also, another reason could be that I use copilot for code completion. which is allowed by rules of codeforces if I did not miss any later change of rules. https://codeforces.me/blog/entry/133941

It could happen that copilot suggested same Kosaraju for everyone. Or I am not even sure, I just know that I did not share any code with those persons either intentionally or unintentionally.

about the code completion, yeah nowadays you do not have to tell copilot explicitly that you are going to implement kosaraju, it detects your typing and automatically adjusts. If using this is prohibited, either I don't know (in that case I just admit my fault and do not complain) or they are not yet in the rules, I hope codeforces will add proper rules to stop or restrict this and I also offer myself to obey those rules.

»
7 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello Codeforces Administration,

I recently received a notification that my solution for problem 2245E (382991021) was flagged for significantly coinciding with several other users' submissions. I am writing to clarify this situation, as I wrote this solution entirely on my own and did not participate in any form of cheating or intentional code sharing.

I believe my code was leaked unintentionally, and I respectfully request a manual review of my case based on the following points:

Distinct Coding Style: If you review my submission, you will see that the variable naming conventions and overall structure are strictly my own. They differ significantly from the usual patterns found in the other flagged submissions.

Account Security Compromise: Codeforces has been displaying a security warning on my account stating: "Your password is extremely weak or has been leaked." It is highly possible that my account was compromised, allowing someone to access my submissions without my knowledge.

Unintended Leak via Online Compiler: During this contest, I used the online C++ IDE at programiz.com (www.programiz.com/cpp-programming/online-compiler/) for the first time to test my logic. I now suspect that my code may have been exposed, logged, or scraped from this public platform.

Submission Timeline: The timestamp of my submission differs significantly from the other users mentioned in the warning, which strongly points away from coordinated sharing during the contest.

I have screenshots and conclusive proof to back up all of these points (including my compiler usage history and the account security warnings) and am more than willing to provide them to the administration upon request.

I kindly request that my submission be reviewed, the plagiarism flag be removed, and my code be judged properly. Moving forward, I have updated my account security and will strictly use secure, local environments for all future rounds.

Thank you for your time and understanding.

»
7 weeks ago, hide # |
Rev. 2  
Vote: I like it -18 Vote: I do not like it

huh?

»
6 weeks ago, hide # |
 
Vote: I like it -10 Vote: I do not like it

Worst contest of all time

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

»
6 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Any update about the skipped submission one? I write all the justifications, consider that.

»
6 weeks ago, hide # |
 
Vote: I like it +40 Vote: I do not like it

Congratulations to the winners of Spectral::Cup 2026 Round 3

You will be contacted shortly via private messages with instructions to receive your prize — personalised hoodie.

Top-30

Rank Name
1 jiangly
2 tourist
3 idontwannadothisanymore
4 alireza_kaviani
5 maroonrk
6 Um_nik
7 EnuTieTie
8 ksun48
9 ecnerwala
10 Suwan
11 peti1234
12 hhoppitree
13 BurnedChicken
14 LLI_E_P_JI_O_K
15 Otomachi_Una
16 zlxFTH
17 ymmparsa
18 Nachia
19 tickcross.y
20 Ormlis
21 ponjuice
22 lucri
23 fIower
24 dog_of_Nesraychan
25 hodza
26 PelicanPilot
27 244mhq
28 Lynkcat
29 Egor
30 middle_man

Announcement of the winners of Spectral::Cup 2026 to follow. Stay tuned

»
6 weeks ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

Congratulations to the winners of Spectral::Cup 2026

You will be contacted shortly to arrange prize delivery. Well done!

Final standings

Contests: 2222, 2229, 2245
Scoring: best 2 result(s), gp500
Participants with positive scores: 1147

GP scores in bold are included in the final score.

Final rank Score Name 2222 2229 2245
1 17070 jiangly 7070 (rank 2) 10000 (rank 1)
2 15771 maroonrk 5771 (rank 3) 10000 (rank 1) 4468 (rank 5)
3 14997 Radewoosh 10000 (rank 1) 4997 (rank 4)
4 10076 tourist 2876 (rank 12) 3006 (rank 11) 7070 (rank 2)
5 9300 ksun48 1799 (rank 30) 5771 (rank 3) 3529 (rank 8)
6 7672 idontwannadothisanymore 1901 (rank 27) 5771 (rank 3)
7 7338 Nachia 4997 (rank 4) 566 (rank 186) 2341 (rank 18)
8 7100 ecnerwala 1469 (rank 44) 3774 (rank 7) 3326 (rank 9)
9 7070 jiangbowen 7070 (rank 2)
10 6687 Ormlis 4468 (rank 5) 2219 (rank 20) 2219 (rank 20)
11 6652 NanYan 3326 (rank 9) 3326 (rank 9)
12 6536 EnuTieTie 2762 (rank 13) 3774 (rank 7)
13 5974 maspy 4468 (rank 5) 1506 (rank 42)
14 5435 alireza_kaviani 438 (rank 237) 4997 (rank 4)
15 5267 SleeplessSouris 2113 (rank 22) 3154 (rank 10)
»
6 weeks ago, hide # |
 
Vote: I like it +18 Vote: I do not like it

The lucky 30 randomly selected participants who finished the Cup in the final Top 500.... drumroll

Final standings: 1147 participants with positive GP scores; best 2 result(s), gp500.

Eligible final ranks: 1..500; 500 candidates; seed: 26382.

Selected candidate positions: 22 27 33 58 68 73 90 127 134 162 203 213 265 285 291 293 329 337 344 359 360 362 365 385 393 405 431 455 466 490

You will be contacted shortly via private messages with instructions to receive your prize.

Candidate position Final rank Score Name Best results
22 22 4616 Kevin114514 2229: 2876 (rank 12), 2245: 1740 (rank 32)
27 27 4078 PCTprobability 2222: 4078 (rank 6)
33 33 3571 permutation 2229: 2065 (rank 23), 2222: 1506 (rank 42)
58 58 2569 FLY_lai 2222: 2569 (rank 15)
68 67 2411 ymmparsa 2245: 2411 (rank 17)
73 73 2284 middle_man 2245: 1799 (rank 30), 2222: 485 (rank 217)
90 90 1973 OrangeEye 2229: 1143 (rank 69), 2222: 830 (rank 115)
127 126 1659 mikelou 2229: 1659 (rank 35), 2222: 0 (rank 525)
134 134 1611 StelIawinD 2222: 1055 (rank 79), 2229: 556 (rank 190)
162 162 1400 siganai 2229: 815 (rank 118), 2245: 585 (rank 180)
203 203 1211 Network_Error 2222: 923 (rank 98), 2229: 288 (rank 312)
213 213 1188 machine_solution 2229: 726 (rank 138), 2222: 462 (rank 226)
265 265 1009 anmichi 2229: 1009 (rank 85)
285 285 967 alexwice 2245: 967 (rank 91)
291 291 958 demonlover923 2222: 958 (rank 92)
293 293 954 mtsd 2245: 954 (rank 93)
329 327 855 ub33 2245: 855 (rank 110)
337 337 831 MagnusCarlsen321 2229: 508 (rank 208), 2245: 323 (rank 293)
344 344 816 Endagorion 2222: 505 (rank 209), 2229: 311 (rank 299)
359 358 783 fydj 2229: 545 (rank 194), 2222: 238 (rank 340)
360 360 781 Tyx2019 2222: 523 (rank 202), 2245: 258 (rank 329)
362 361 779 __ORegano69_ 2245: 779 (rank 126)
365 365 770 AllGraph 2245: 770 (rank 128)
385 384 720 MiracleFFT 2245: 720 (rank 140)
393 393 709 marc2825 2229: 709 (rank 143)
405 405 672 ising36hz 2245: 672 (rank 153), 2222: 0 (rank 2901)
431 431 628 Bitan1234 2245: 628 (rank 166)
455 455 588 freeloop2 2229: 588 (rank 179)
466 465 570 oblememan 2245: 570 (rank 185)
490 490 537 Wasted_ 2229: 537 (rank 197)
»
6 weeks ago, hide # |
Rev. 5  
Vote: I like it +22 Vote: I do not like it

Thanks everyone for participating in Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2). Although it was initially difficult to understand from the editorial when I first participating in Codeforces contests. However I found that once I got used to it, the explanations felt very easy to understand, accurate, and highly academic. (Sorry for my bad English)

»
6 weeks ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

downvote me

»
6 weeks ago, hide # |
 
Vote: I like it -10 Vote: I do not like it

Hello,

I would like to respectfully ask about the skipped submissions in Contest 2245.

I currently do not know which problem or submission was considered a rules violation, or what specific rule I was considered to have violated. Could you please provide the related problem, submission, and reason?

I would also like to clarify that I did not cheat, copy code from others, or share my solutions during the contest. I wrote my submissions independently.

I would be very grateful if you could review my case and let me know the specific details.

Thank you very much for your time and help.