ko_osaga's blog

By ko_osaga, history, 7 months ago, In English

Annyeonghaseyo, Codeforces!

We invite you to participate in Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2), which will be held on Oct/03/2025 17:35 (Moscow time).

The round will be rated for everyone. You will be given 8 problems, one of which is divided into two subtasks, and 3 hours to solve them. One of the problems will be interactive, so make sure to read the guide for interactive problems before the contest.

The problems are authored and prepared by middle_man, djm03178, ko_osaga, and qwerasdfzxcl.

We would like to thank:

As some of you may know, this contest originates from my promise to hold a Codeforces round if T1 wins a World Championship, which they did win afterwards in 2023 and 2024. This contest is dedicated to the T1 League of Legends team, and each problem will feature the members of their roster following the 2023 season. They are the sole reason for this project, so I want to extend my thanks to them and wish them the best of luck in their 2025 run! For those who are unfamiliar with the game, don't worry, as the problem statements are written neutrally anyway.

Score distribution is $$$500 + 1500 + 1500 + 2500 + 3000 + 4000 + 4000 + (4000 + 2500)$$$.

Now, a few words from our sponsor!

We are proud to support this competition and the talented participants who represent the future of our industry.

Squarepoint Capital is a global investment management firm with headquarters in New York City and London, and offices around the world. The firm is known for its quantitative finance approach to investing.

Igor Melnikov, Two-time winner of the All-Russian Mathematical Olympiad, First Prize at IMC in university, shares his insights on working at Squarepoint Capital:

"At Squarepoint, I'm surrounded by a team of exceptional individuals who share my passion for mathematics and competitive programming. As a winner of the National Olympiads in mathematics and an IMC medalist, I'm in good company — many of my colleagues have also participated in and won awards at national and international Olympiads. With a strong presence of Olympiad participants and medalists on our team, we bring a unique combination of mathematical rigor and problem-solving expertise to our work, and I'm excited to be a part of such a talented and driven team."

Squarepoint is actively hiring! If you have a background in engineering, computer science, mathematics, statistics, econometrics, financial engineering, operations research, or physics, and you’re proficient in at least one major programming or scripting language — this could be your opportunity.

Apply here →

🎁 Prizes:

  • Top 5 performers will receive a $300 Amazon voucher each.
  • Next 10 highest scorers will receive a $50 Amazon voucher each.

Good luck, and happy coding!

UPD: Thanks to everyone for participating! The editorial is here.

Top 15:

  1. Nachia
  2. qiuzx
  3. BurnedChicken
  4. Kevin114514
  5. jiangly
  6. tourist
  7. strapple
  8. ksun48
  9. Um_nik
  10. Otomachi_Una
  11. VivaciousAubergine
  12. Dominater069
  13. ecnerwala
  14. 7etuPr0mK_X-VPA.8-ER1SYJ
  15. tiger2005
  • Vote: I like it
  • +527
  • Vote: I do not like it

»
7 months ago, hide # |
 
Vote: I like it +76 Vote: I do not like it

As a tester, the round is supercalifragilisticexpialidocious.

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

    That’s probably the most unique review I’ve seen from a tester so far. Now I’m even more curious—does “supercalifragilisticexpialidocious” mean the problems were fun, tough, or both? Guess we’ll find out during the contest.

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

    Well, it definitely felt tough! Cooked (more like burnt)!

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

Time to start playing League

»
7 months ago, hide # |
 
Vote: I like it +56 Vote: I do not like it

2500 after 1500? wow.

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

nice instead of training on codeforces for this contest yall encouraged me to play a league game after quiting xD

»
7 months ago, hide # |
 
Vote: I like it +40 Vote: I do not like it

POG round. My problem predictions

  • A: Keria warding
  • B: Oner and right moment to smite, game setting
  • C: Zeus and something with Gnar form
  • D: Faker Azir, dp
  • E: Duo Keria+Gumayusi, game setting
  • F: Oner roaming, graph problem
  • G: Gumayusi Xayah/Aphelious, counting
  • H: Faker Ahri
»
7 months ago, hide # |
 
Vote: I like it -11 Vote: I do not like it

Good luck to Invictus Gaming

»
7 months ago, hide # |
Rev. 2  
Vote: I like it +12 Vote: I do not like it

Wait another H1+H2

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

Wow, seems like an amazing contest. Can't wait to see the problems

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

Score Distribution :(

»
7 months ago, hide # |
 
Vote: I like it +33 Vote: I do not like it

As a tester, the round is phenomenal and brought me to tears.

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

As a tester, T1 is going to win the LOL Worlds 2025.

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

I take too much shower to play LoL (approximately 10). So I will not participate

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

Where is __baozii__

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

The prizes are laughable. Imagine grinding problems for 15 years and becoming an Lgm only to get a $50 amazon voucher.

  • »
    »
    7 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +17 Vote: I do not like it

    I mean, they’re literally spending $2000 just for a single Codeforces round. I get that it’s mostly for hiring and visibility for their company, but that’s still a decent amount to give away in prizes. It’s definitely not nothing (worth mentioning at least) and isn't the main reason people do CF contests anyway. I’ve seen rounds with prizes much smaler (like TON rounds, although they have a pretty big prize pool since they reward a lot more people).

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

      Absolutely, $2000 is a significant prize for a single round, and it shows how much the sponsor values the community. But I agree, most participants are motivated by the challenge and learning experience rather than just the prizes. It’s great to see both community support and meaningful rewards coming together.

  • »
    »
    7 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it -16 Vote: I do not like it

    (bad joke, please don't send me read-only again 🙏)

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

    You dont even participate. Learn to be grateful.

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

What's "contribution", guys? Can you tell me, please? Although I signed up a year and a half ago, I started using Codeforces just 1-2 months ago, so I still don't know what that is.

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

Thanks to the authors and testers for preparing such a large and interesting round. Having 8 problems with a mix of subtasks and an interactive one sounds very exciting and challenging. I really appreciate the effort to keep the statements neutral while still giving a creative theme with T1. Looking forward to the contest and best wishes to all participants.

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

Score distribution says: you solve problem D ? will be solve problem E also : Good luck next time :)

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

gg

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

Contest looks scarier after seeing organizers team :)

»
7 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

As someone supporting LPL, I’ll be scared to death and cry the moment I see the faker in the statement.

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

    Well... I passed ABCD in 31 mins, and passed E at 2h10m, literally scared by Faker.

»
7 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

As a tester,

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

I think the site stuck the submit button don't work

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

Why this contest has less registrations??

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

Is there any problem with TL of 1.557 second?

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

I guess C may be a construction problem.

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

As a participant, Good luck to everyone!

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

Hope this round push me to blue :).

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

Wow seems like a good contest! Good luck for everyone !

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

500 to 1500 :clown:

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

looking forward to doing my first contest!

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

Was cf crashed?

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

Why does D have so many points :|

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

The scoring looks super scary~~~ with 4000 on F!

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

After reading the comments for 5 minutes I have concluded I am doomed. Good luck to those with actual skill unlike me ;-;

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

if we register and are online but dont submit anything, will my rating be reduced?

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

    no, rating won't be reduced.

    It will only reduce or increase if you submit a solution.

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

Me on my way to absolutely decimate this contest(newbie btw)

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

My gf was breaking up. What should i do at this time?

»
7 months ago, hide # |
 
Vote: I like it +18 Vote: I do not like it

I tried accessing the contest via m2/m3 because the normal page isn't loading for me, but when I try to open a problem statement it says "The statement is not available"

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

Forgot to register in time :)

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

The fairness of CF contests seems really concerning after the evolution of LLM.

»
7 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

hi guys

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

May I ask why my account 411411 was banned in this game and the submission record was skipped?

»
7 months ago, hide # |
 
Vote: I like it +56 Vote: I do not like it

My $$$\mathcal O(n\log^2n)$$$ solution for G received TLE.

Did not solve B.

:/

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

any hints for B?

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

    see how can change dx and dy evry move

  • »
    »
    7 months ago, hide # ^ |
    Rev. 4  
    Vote: I like it +3 Vote: I do not like it
    Spoiler

    just go to the borders

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

      i tried the same but in some different way my bad XD

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

      my thinking was (max border K can reach opposite of D + min dist D req to reach k) but didnt knew how do i implement this also i guess this is wrong too :) then thought of BS still was not able to solve

»
7 months ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

Absolutely cooked. Cooked alive.

»
7 months ago, hide # |
 
Vote: I like it +46 Vote: I do not like it

Thanks for the contest but where is counting?

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

    Sorry for the unbalanced set. The number of data structure problems was not enough, while the number of counting problems was enough.

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

how to B? my logic was to try find the the time it takes for Krug to reach corner farthest from D and if it was already on a corner finding the time D takes to reach K , but that didnt work

»
7 months ago, hide # |
Rev. 4  
Vote: I like it -10 Vote: I do not like it

[Deleted]

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

How to solve E?

  • »
    »
    7 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +11 Vote: I do not like it

    Start with a query of everything, then for every following query, take the previous one and remove the skyscrapers. If one of these gives you $$$n+1$$$ skyscrapers, you win. Otherwise, for each index, write its value as $$$i$$$ if it was a skyscraper in the $$$i$$$-th query and $$$i+1$$$ if it wasn't ever a skyscraper. This is the length of the longest decreasing subsequence ending at this index, except for the ones with $$$n+1$$$, those may have a longer sequence. So if you don't have a query with $$$n+1$$$ skyscrapers, you can just go backwards, start by taking the first index with value $$$n+1$$$, then take the earliest (going backwards from this one) with value $$$n$$$, etc. This gives you a decreasing sequence of length $$$n+1$$$, so you win.

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

    I constructed a Directed Graph from every Queiry and finally found a path of length N+1, each edge in my graph takes you to an index having bigger element from an index having smaller element.

»
7 months ago, hide # |
 
Vote: I like it +61 Vote: I do not like it

range query forces

»
7 months ago, hide # |
 
Vote: I like it +36 Vote: I do not like it

Passed F pretests in 2967 ms (3000 is the limit)... Let's just hope.

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

If I can have five more minutes,I can get the second problem.

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

I wanna used Segment Tree to solve D at first. However it doesn't work (QwQ). I've submitted 6 times with WA on #2.

»
7 months ago, hide # |
 
Vote: I like it +37 Vote: I do not like it

Dont like the league theme but this round in terms of problem quality was by far one of the best rounds ever.

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

I guess B is that kind of question where you feel that the solution is very easy, it's somewhere there, but you can't find it. C on the other hand, was clear as daylight except for moderate implementation. Perhaps when B and C have the same score distribution, it's better to do C first? How do you accurately manage to solve questions like B without WA. I don't think it's possible to practice them.

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

Unfortunately, JDScript0117 was just shy of becoming an LGM.

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

I don't think I have ever spent so much time solving B

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

I should've try H1 instead of G.

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

How to solve F?

»
7 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

Nothing like bashing my head in at E while PRX

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

For me B>C -_-

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

RangeQuery-Forces!!!! anyways Congratulations Dominater069

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

Dominater069 Early congratulations to you on becoming the first and only LGM from India.

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

Today B>>C

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

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

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

D was nice but I fell into an observation loop and wasted way more time than I should have. Anyways, nice contest.

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

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

»
7 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

Finally elite I can die in peace now

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

I like F very much <3. G is also good but I submitted my correct solution 1 minute late 😭😭

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

The contest is absolute cinema !

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

Hello,

I have received a message about my solution coinciding with others for problem 2152D. I want to clarify that I did not intentionally share or copy any code. It’s possible that a similar approach or template caused the match. I sincerely apologize for any misunderstanding and will make sure to write all future solutions completely on my own and avoid any external tools or shared environments.

Thank you for your understanding.

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

.