Блог пользователя BernatP

Автор BernatP, история, 8 месяцев назад, По-английски

Hello, Codeforces!

We are pleased to announce the resumption of the Global Rounds. Thanks to XTX Markets for supporting the initiative! In 2025, we will hold 3 such rounds. The series results will take into account the best 2 participations out of 3.

On Sep/20/2025 17:35 (Moscow time) we will host Codeforces Global Round 29 (Div. 1 + Div. 2).

Codeforces Global Round 29 marks the first round in the 2025 series of Codeforces Global Rounds. These rounds are open and rated for everyone.

The prizes for this round are as follows:

  • The top 30 participants will receive a t-shirt.
  • 20 t-shirts will be randomly distributed among participants ranked between 31 and 500, inclusive.

The prizes for the 3-round series in 2025:

  • In each round, the top-100 participants get points according to the table.
  • A participant's final score will be the sum of the points they earned in their 2 highest-placing rounds.
  • The top 20 participants across the series will receive sweatshirts and placement certificates.

We extend our gratitude to XTX Markets for supporting the global rounds initiative in 2025!

The problems were written and prepared by misteg168, FelixMP, Pablo-No, danx, MeGustaElArroz23, Clan328 and me.

We would also like to thank:

Round Information:

  • Duration: 3h
  • Number of problems: 9

UPD: Score distribution: $$$500 - 1000 - 1500 - 2000 - 2500 - 3000 - 4500 - 5500 - (4000 + 3500)$$$

UPD2: In this round, some of the problems will feature interactive visualizers that can help you to play around with small test cases. These are not part of the problem statements, although we tried our best to make sure that their behaviour correctly follows it. You can investigate examples or your own tests in more details with them. Note the following:

  • the visualizers use javascript in your browser to work; you don't need to install anything additional;

  • we won't be able to help with the visualizers during the round.

Picture of authors (and some testers) (and some non testers):

We eagerly anticipate your participation!

UPD3 Congratulations to all the winners!!!

  1. ecnerwala
  2. jiangly
  3. ksun48
  4. Benq
  5. heuristica
  6. turmax
  7. strapple
  8. Nachia
  9. hos.lyric
  10. Kevin114514

UPDT 4: Editorial is out: https://mirror.codeforces.com/blog/entry/146633

  • Проголосовать: нравится
  • +375
  • Проголосовать: не нравится

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +37 Проголосовать: не нравится

the goats themselves are running a round! lfg.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +78 Проголосовать: не нравится

Is it rated?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +45 Проголосовать: не нравится

As a tester, I liked problems from this round more than from CAMA, which had really nice problems. Orz authors.

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +22 Проголосовать: не нравится

    that hurts bro

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Nemanja, you absolute galaxy-brained mastermind… normally your words descend from Mount Olympus like divine wisdom itself. But this time… oh boy. This round is cool, sure… but saying it’s better than CAMA is like saying a candle outshines the sun.

    CAMA isn’t just better… it’s a whole separate lifeform, it’s peak evolution, it’s the final boss of awesomeness. CAMA >>>>>>>>>>>>>>>>>>>>>>>>>> reality itself.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +25 Проголосовать: не нравится

oh wow !!!

I love how the colors of testers are named with a fruit .. very creative.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +55 Проголосовать: не нравится

Spanish round omg :O

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

As a tester of teamscode, I'm excited to see danx in the author list.

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +5 Проголосовать: не нравится

    I'm always excited,but after reading your comment, my excitement just got… more excited. Not quite as excited as that time I slept next to an almost-naked Esomer, but still dangerously close. Long, happy and exciting life to you and TeamsCode!

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится -6 Проголосовать: не нравится

If there was a cyan tester, which food would it be?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Where is __baozii__?

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +14 Проголосовать: не нравится

As a tester, Barça is the best team in the world (find me in the photo) :)

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +53 Проголосовать: не нравится

As a setter, I'm dyslexic

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +48 Проголосовать: не нравится

As a tester, i told all my friends to participate as the round is really high quality and has lots of nice problems!

»
8 месяцев назад, скрыть # |
Rev. 4  
Проголосовать: нравится +20 Проголосовать: не нравится

as danx boyfriend, Esomer is the sexist (and sexiest) tester in the world, only cause Dalek_of_Rivia has not tested yet

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

i interested part of coder gang but my codeforces rating is low

»
8 месяцев назад, скрыть # |
Rev. 3  
Проголосовать: нравится +32 Проголосовать: не нравится
»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

the colors for eggplant and blueberry emojis are swapped wrt the cf role colors and its driving me insane

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится -8 Проголосовать: не нравится

[deleted]

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Excited for Global Round 29! Thanks to all authors, testers, and coordinators for their hard work.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +62 Проголосовать: не нравится

As a tester, I am sure this is what happened for many of you when you saw Global Round happening in 2025.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The goats are awasome

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can we have Orange Testing Instead of Banana

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +27 Проголосовать: не нравится

orz danx

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

__baozii__ fan are crying in this contest lol

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Wishing everyone has a blast in this competition!:)

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

Visca!

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hoping that the small baby in my DP (display picture not dynamic programming ^_^) will smile till end of September :).

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится -31 Проголосовать: не нравится
rating += 4000 - 1515;
»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

$$$5500$$$ points? That's incredible bro

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

the visualisation feature is so sick....love it...hope it will be in future contests as well...

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +148 Проголосовать: не нравится

lol what happened to problem G?

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +20 Проголосовать: не нравится

how are many coconut handles able to solve G but not E and F *_*

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +86 Проголосовать: не нравится

The contest is roughly good and I love the format that most of problems have their visualizer... but what happened in the AC count of G?

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +74 Проголосовать: не нравится

A bunch of cheaters between rank 100 and rank 200. They are all newbies and they cannot solve E and F, even D, but they can solve G. Please check if their code is AI-generated

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +96 Проголосовать: не нравится

Please ban all cheaters that solved G with ChatGPT

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

What had happened on G?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +116 Проголосовать: не нравится

Comment below if you solved G completely by yourself(like me ^.^)!!

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

AI could pass G

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +75 Проголосовать: не нравится

gambleforces

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

D and C are very good problems

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

C was a very neat problem and I enjoyed solving it even if I got +8 in penalties.

I then got to D and got it in 20 minutes with a guessed solution :/

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

problem C alone costed me almost 250 perf....

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +101 Проголосовать: не нравится

Dislike most problems. Hard and strange. D<A<B<C.

Almost solved F with some $$$\mathcal O(n\sqrt n)$$$ solution.

I'm losing hundreds of rating. Probably contribution as well.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

AIforces

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

C>>>>>>>>>>>D

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Is C was like a prefix sum question where you have to find the minimum distance of a 0 to another zero (left and right) and if the distance is greater than 2 then the answer is false otherwise it is true.

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    no

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      so can you explain me the solution that you have applied.

      • »
        »
        »
        »
        8 месяцев назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        In the case of 1010101, the distance is 1 in between all zeroes, yet (if I understood correctly) there is no way to make the rabbits not jump. Either the first two face eachother and the last makes a jump, or the last 2 face eachother and the first makes a jump, unless I am mistaken.

      • »
        »
        »
        »
        8 месяцев назад, скрыть # ^ |
        Rev. 2  
        Проголосовать: нравится +1 Проголосовать: не нравится

        for C you just had to do a simple reduction.

        if there are consecutive 0's (empty pots), you can imagine there's a wall between them.

        so 011001001 is equivalent to three separate problems that are easier to solve 0110, 010, and 01

        now for each subproblem, you just check the number of zeros in chains of 0101010s. if its odd and none of the zeros is on a border, then its impossible.

        339557173

      • »
        »
        »
        »
        8 месяцев назад, скрыть # ^ |
        Rev. 2  
        Проголосовать: нравится 0 Проголосовать: не нравится

        the main idea is that you solve the problem for groups of 0's that are not separated by more than one 1 indepandently , because when there are 2 consecutive 1's the rabbids from previous positions can not interact with rabbids in the next positions (this is the most important idea) . now when you have a group that we described earlier you can see that when the count of rabbids in that group is even you can always pair them up and none of them can escape , for example : 10->1<-0 and so on , now we can expand this to odd count of rabbids at one condition : "there are at least 2 consecutive rabbids in the group" , because we can do this : 10->1<-0(<-0)1 , so we pair (cnt-1(even)) and the last one can see in the direction of its blocked neighbour , although i don't have a formal proof of why it won't work otherwise i think it is pretty intuitive . you can refer to my implementation : submission

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +68 Проголосовать: не нравится

I saw that there were more AC in pG than pF, so I spent all my time to solve pG. Then my rank drop from 30 to 200...

I regret my decision.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Problem C and D should have been swapped.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

Way to many cheaters on G

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +39 Проголосовать: не нравится

Just ban everybody below CM who solved G but not E or F. The chance of false positive isn't big anyways

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится +2 Проголосовать: не нравится

worst contest(performance wise)for me -160 :(

Started 1:10 hours late thought i would cover it but f'ed whole contest. But will upsolve

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

Thanks for the round!
The problems are interesting and diverse enough.
The visualizers are a nice touch, hope to see more of these in the future.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

To be honest, I really don't like C. There are too many edge cases and I got 8 Wrong Answers but still didn't solve

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Great round! Especially balanced difficulty of problems

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

why my C 339573079 got WA on test 2?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +38 Проголосовать: не нравится

I got trolled by rand on B, it cost me about 20 minutes and a bunch of TLE submits, and i got ac once i switched to mt19937. Cautionary tale to never use rand, i guess i finally learned that the hard way lol

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    there was a construction so rand was really never needed

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится +5 Проголосовать: не нравится

      Funny story, there was an incredibly similar problem in the 2024 AMO:

      is it possible to construct array of length 12000 such that there are 1000 of each number from 1 to 12 and the distance between every pair of equal elements is divisible by it

      so i used the solution to that one instead of looking for a construction

      ironic that prior knowledge of a generalised version of the problem made me perform worse

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

can I solve problem C in DP??

dp[i][0] : ith cat can see left

dp[i][1] : ith cat can see right

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Why did I1 and I2 only have 2 testcases

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to approach C ?

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    There is 2 solution , dp and greedy

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      339573079 Is there a edge case I missed?

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      what is the greedy way of doing ?

      • »
        »
        »
        »
        8 месяцев назад, скрыть # ^ |
        Rev. 2  
        Проголосовать: нравится 0 Проголосовать: не нравится

        There are some edge cases for the first and last elements of the string. You can think of it yourself. For the general case, for any substring of the form 110...011, you can see that thus substring can never affect any other part of the string. So, basically, any substring that has 11 after and before it will be independent. We can remove these extra ones in the prefix and suffix of these substrings and get something of the form 0...0. For these type of strings, it is possible to arrange the rabbits if and only if there is either any substring of consecutive 0s in it, or the number of 0 is even. You should try to prove it yourself. If all independent substrings can be arranged correctly, the answer is yes, else no.You can also check my code

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      how to do using dp?

      • »
        »
        »
        »
        8 месяцев назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        Let's say there is ask(int X) function which will tell us wether we can arrange rabbits from level X to n

        Now suppose we are at level a, then there are multiple transition we can make

        If pot[level] == 1 means there is grass then we don't have to worry about it and answer for level a is same as ask(a+1)

        If pot[level] == 0 then either it's immediate right has to be rabbit or immediate left or if immediate right is grass then immediate right to right has to be rabbit , now we have to call ask function according to the transition we made

        Ask me if you have any doubts or you can check my code

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +12 Проголосовать: не нравится

    This might seem difficult than others but it seems easier to reach this solution if you knew this. It can also be solved using simple Bipartite check for a graph.

    1. if there is only one 1 between two 0s then both should be having different directions. So we can add an edge to the graph.
    2. if there is more than one 1 between two 0s then both should be having the direction opposite to the 1s. So the direction is fixed(left one should be left and right one should be right).
    3. if there is a one 1 in the end then also the nearest 0 should be facing away from the 1.

    Run the dfs and check for bipartite.(Start from all the vertices already having a fixed color/direction)

    Note: There is no restriction on any zero that does not have any adjacent 1.(Could be in any direction)

    Submission: 339613547

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +34 Проголосовать: не нравится

was G google searchable or chat gpt-able? so many of CM solved ABC and then G. what the hell?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

How to do C

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

I think G is a good question, but with so many AI passing through this question, these people, especially Indians, should be severely punished

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to solve D??

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    https://mirror.codeforces.com/contest/2147/submission/339575538

    I just guessed the solution, but it got pretests passed, the only issue I could think of when the testcase is something like, 1,1,2,2,3,3 but my code is passing that case as well, not sure what will happen after System testing is complete...

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится
    Spoiler
  • »
    »
    8 месяцев назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +8 Проголосовать: не нравится

    Even numbers :- both will get same number of points no matter what

    Odd numbers :- this is the game changer,because one will get (x/2) and other will get (x/2) + 1 times.Thus both will prefer odd numbers with max_freq. So just take <x,freq> pair sort it in desc order,on alice's turn she will get (x/2)+1 times the freq and bob will get (x/2) and on bob's turn he will get (x/2)+1 times and alice will get (x/2) times.

    For even numbers :- both will get (x/2) times the freq.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +18 Проголосовать: не нравится

Contrary to most people I solved C and E but not D lol. I would love some logic on D.

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +6 Проголосовать: не нравится

    At least in my solution, you don't need to consider the case where a number changes into another number (i.e. 2 2 3 3 -> 2 2 2 2)

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    my approach was a bit simple.Create a vector of pair storing frequency and the number and then sort it in non increasing fashion. Now alice will start first, as he is starting first he will get upperbound of that number i.e frequency*(number+1)/2 and bob will get frequency*(number)/2. Now the only thing we need to understand is who will start picking first when the next number starts which is simple to find, if the prev number was odd and alice started then for the next number bob will start first and vice versa. For the even number the person who picked first prev will pick the next one first as well.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

Thanks to the authors, nice round! There are a lot of cheaters on G, I hope you'll check them out. I was also confused by this, I passed a n^2 solution in F(TL 4), but decided to leave this task and switch to E because of the small number of OK on F. Although without mass cheating, I think a lot of people would have passed F.

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

my best

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to solve E?

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +18 Проголосовать: не нравится

    First, we prove an important lemma: There exists an optimal set of changes such that every set bit in the OR is either set before any changes, or is a part of a suffix containing only set bits.

    Proof

    Now, for each possible suffix of ones, we calculate the minimum number of changes required to reach it. To do this, we can just go bit by bit starting with the leftmost one, if it's already set, do nothing, and if it isn't, change the number with the highest remainder modulo respective power of 2 (only these modulos matter now, as higher bits can't be unset by doing this and the required ones are already set). Calculate this for every bit, get the minimum number of changes for every suffix length, and then for each scenario, just pick the longest suffix of set bits that's possible. Time complexity is $$$O(n log^2(n))$$$.

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
       
      Проголосовать: нравится +1 Проголосовать: не нравится

      But when we are calculating the minimum number of moves for a suffix, our past moves matter, because by adding to one of the numbers in the array you might lose one of the bits on the right.

      I don't understand why your greedy approach for the last part works

      • »
        »
        »
        »
        8 месяцев назад, скрыть # ^ |
         
        Проголосовать: нравится +11 Проголосовать: не нравится

        Because you need to somehow get to that bit, so you need to change some number to set this bit, and changing any other number than the maximum after modulo can be simulated by changing the maximum to set this bit, then changing the other number to the maximum (actually its modulo), which takes the same amount of steps, so you don't lose anything by just changing the maximum.

        • »
          »
          »
          »
          »
          8 месяцев назад, скрыть # ^ |
           
          Проголосовать: нравится 0 Проголосовать: не нравится

          I still didn't get the proof of greedy strategy to have all k bits in suffix set to 1 , setting only kth bit to 1 is trivial whichever has maximum modulo, needs least op but how does it work for suffix k bits?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

oh, B is too hard for me. I only managed to solve it at 2:53

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +55 Проголосовать: не нравится

Was G GPT-able? I saw that more people were solving G then F and decided to skip F, so it affected my result even discounting the people who passed me unfairly...

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Guessforces!

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

what special property does G have that it was solvable by GPT despite being so hard!?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Is there a method to come up with a solution for constructives like B? I could only do trial and error.

Great problems tho :)

»
8 месяцев назад, скрыть # |
Rev. 5  
Проголосовать: нравится +18 Проголосовать: не нравится

Abolish combined rounds (to clarify: I enjoyed problems, but problem G situation is crazy, I regret solving it over F based on standings:/)

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +49 Проголосовать: не нравится

Problem F is really beautiful, thanks!

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +23 Проголосовать: не нравится

Now let's test GPT 5 Pro, which is granted for the participants of ICPC WF 2025!
G seems really GPT-able. chat
idk it's actually correct, but it passes the samples and some tests compare with AC submissions.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I like contest problems even though I am cooked, excited to know the solutions

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

going to lose lot of rating :( couldnt come up with a solution for B after staring at it for an hour and then -8 (wrong answer on testcase 2) for C.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +18 Проголосовать: не нравится

Thank you for the round! B felt harder than usual but D and E were very cool.

I enjoyed working on G although I wasn't close to solving, sad to see that it was trampled by cheaters.

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +8 Проголосовать: не нравится

    I actually find B very fascinating... Indeed, it took me way too long. But in retrospect, even though I did find a viable pattern, I know there was a more methodical approach. Particularly, I remember stumbling onto the fact that you could stack even or odd numbers onto each other. Additionally, that most numbers could be placed at a distance of 2x from each other, and not just x. Put the two and two together and you get a trivial pattern. For some reason, I didn't internalize that second point enough and didn't try to draw a conclusion like that. So I guess for future reference, look for more properties instead of looking for patterns?

    • »
      »
      »
      8 месяцев назад, скрыть # ^ |
      Rev. 2  
      Проголосовать: нравится +5 Проголосовать: не нравится

      Hi fellow 199!

      Yeah it was a skill issue on my part. I remember staring at something of the form 53113542x24 for 30 minutes without any thoughts on how to vacate the x, but during the time I could've sought other constructions. If I tried writing a brute force I also could've solved sooner.

      In general, maybe it's an issue of "too much thinking, not enough solving" ;(

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Why are we unable to see hidden pretest yet??

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Editorial?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can anyone help me debug the code for Problem C. I used greedy, first fixing the direction of rabit for those pots where they dont have any other option like 11010 or 01011, then find if I can find the pair for them and then for rest of the rabbits which have options chose them greedily for left or right. Left those on the border or consecutive 0s as they always find a direction to not jump: https://mirror.codeforces.com/contest/2147/submission/339602741

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

204 solves currently for G. Excited to see how many solves after removals.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Wasn’t d easier than c?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

For D, in this tc:

1
3
3 3 1

answer should be 5 2 right? I see multiple AC submissions that give 4 3.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can anyone please tell me why my solution for E couldn't work.

Solution
»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Problems were really Nice , don't know why there were that many G submissions though

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +147 Проголосовать: не нравится

I know many people are hurt by what happened with G situation and I understand the disappointment. I would like to ask to not direct any hate towards the authors though. As a tester, I can confirm that they spent a lot of time working on the round and making the problems for you to enjoy. And they are even dedicating more time to catch as many cheaters as possible. They are more upset about the situation than any of us.

So please, don't give cheaters all the attention and praise the authors for the work they put in to make this round possible!

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

is problem B == Leetcode 1718 ?

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Not exactly, in B you must use two copies of 1, meanwhile in this problem 1 must only show up once. The problem you linked also does not allow distances to be multiples of the number, and you must output the lexicographically largest array possible rather than B which does not have that requirement.

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

I hope that authors will always be given pre-tests like these.

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Are the tests for Problem D correct? My solution passes the maximum test, but gets a time limit on the smaller test.

UPD It's really anti-hash test?

  • »
    »
    8 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +33 Проголосовать: не нравится

    Well, it was a hack that was added to the testset after the contest (which is a standard practice). I don't really know what we should have done differently in your opinion. Have it in pretests in the first place? Don't add the hack to the tests?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Recur + memo approach for C := 339626295

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

Thanks for the round:

  1. Unexpectedly solved ABCD and delivered one of my best performances.
  2. Solved G on paper in the remaining time, up to deriving the formula, but couldn’t implement it. 2147G NT approach.
  3. D failed after retesting because of unordered_map. A few days earlier I spent a long time on ABC 418E where map TLE’d but unordered_map passed. I studied it superficially and used it in D today, which cost me the problem. Now I’ll study it thoroughly.

The main thing isn’t the delta, but persistence in understanding concepts, starting from the simplest ones. Today my “persistence delta” grew a lot thanks to the contest.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Thanks to this contest because I've become a pupil now. The problems were delightful. And, C was just awesome. I found a greedy solution for C. Most of my friends wrote a DP solution for C.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится -14 Проголосовать: не нравится

What do you call Specialists?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

will cheaters be removed from the standings and ratings recalculated?

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Spent all my time trying B, then I heard some coconuts solved G :D

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

I was just scrolling through the top ranks and the number of obvious cheaters is unreal. It's not just G! They clearly used GPT to solve A,B,C,D as well. Someone has said that GPT-5-Pro could even solve H. At this point, we need chess.com level detection of cheaters to make these contests fun again. Feeling really bad for the setters, testers, and honest participants. So many greys have outscored IGMs :(

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Decided to upsolve I1 since I didnt look at the contest until a lot of time already passed, so I just looked at the hard problems that looked feasible to solve. It was actually a really cool problem. Interestingly enough, this problem shares a technique with a problem I already knew before.

Approach spoilers
»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

My DP solution to C: 339573488

I was comparing with what I did at (i-2) to calculate for the ith state, Here the second state if:

0: Means a plant

1: Rabbit placed left looking

2: Rabbit placed right looking

But as it is dependent on (i-2), I calculated manually first all starting [0][0], [0][1], .. [1][2] 24 states for initialization. How to think of better dp states or how to modify solution in better way.

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Tried to solve F during the contest and afterwards — it seems that my "DCP-style" solution in $$$Nlog^2N$$$ is too slow and gets 5s to work (and $$$\ge$$$ 256Mb memory) (checked with changing TL / ML in mashup)

Well, at least it works! (Now it's time to check the authors' approach)

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Thanks for the contest. The Contest was amazing!!!

»
8 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

My solution for problem 2147C - Rabbits is 339594760. Time Complexity O(N).

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится +37 Проголосовать: не нравится

Will there be rollback?

»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится +60 Проголосовать: не нравится

Congratulations to tshirts winners! In a few weeks you will be contacted via private messages with instructions to receive your prize.

As usual, we used the following two scripts for generating random winners, seed is the score of the winner.

get_tshirts.py
randgen.cpp
List place Contest Rank Name
1 2147 1 ecnerwala
2 2147 2 jiangly
3 2147 3 ksun48
4 2147 4 Benq
5 2147 5 heuristica
6 2147 6 turmax
7 2147 7 strapple
8 2147 8 Nachia
9 2147 9 hos.lyric
10 2147 10 Kevin114514
11 2147 11 dXqwq
12 2147 12 antekb
13 2147 13 jiangbowen
14 2147 14 kotatsugame
15 2147 15 Nyaan
16 2147 16 _wrz_
17 2147 17 literalchild
18 2147 18 OrangeEye
19 2147 19 Su_Zipei
20 2147 20 Flamire
21 2147 21 lotusblume
22 2147 22 7etuPr0mK_X-VPA.8-ER1SYJ
23 2147 23 cdxcdxcdxcdx
24 2147 23 yosupo
25 2147 25 Dominater069
26 2147 26 Tlatoani
27 2147 27 thenymphsofdelphi
28 2147 28 zltzlt
29 2147 29 cn449
30 2147 30 antontrygubO_o
108 2147 108 JYJin
118 2147 118 abs0lute
157 2147 157 peti1234
158 2147 158 Watersphere
160 2147 160 maxplus
181 2147 181 ArturSmolenski
259 2147 259 XZRSEVEN
262 2147 262 Wawi
263 2147 263 chenkaiwen
264 2147 264 CleinCc
278 2147 278 medmdg_3
309 2147 309 -0v0-
334 2147 334 tianbincheng
338 2147 338 kringeman1
351 2147 351 Remgagagali727
370 2147 370 C0DET1GER
411 2147 410 dandelayer
426 2147 426 hardenisthegoat
459 2147 459 Jarif_Rahman
464 2147 464 wenbozh
»
7 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

ORZ, Spanish CP goats!!!!!

»
4 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

.