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

Автор jdurie, 2 года назад, По-английски

Hi, Codeforces!

I welcome everyone to participate in Codeforces Round 941 (Div. 1) and Codeforces Round 941 (Div. 2), which will start on Apr/27/2024 17:35 (Moscow time).

Both divisions will be given 6 problems and 2 hours to solve them.

One of the problems was also used in the Yandex Cup finals, which was authored by tourist, so if you participated in the Yandex Cup finals or know the problems, please refrain from participating. All other problems were created and prepared by me.

I would like to thank:

Good luck to all the participants!

Score distribution:

Division 1: 500 — 1250 — 1500 — 2000 — 2500 — 3500

Division 2: 500 — 1000 — 1500 — 2000 — 2250 — 3000

Update: Editorial is up

Congratulations to the winners!

Div. 1:

  1. jiangly
  2. conqueror_of_tourist
  3. nocriz
  4. tatyam
  5. bruhopen

Div. 2:

  1. Chengxixi
  2. SlhShn
  3. SlavicC
  4. awooga
  5. zyh_helen
  • Проголосовать: нравится
  • +262
  • Проголосовать: не нравится

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

yandex cup qual? semifinal? or final? (Because if not final,I can participate.)

»
2 года назад, скрыть # |
Rev. 4  
Проголосовать: нравится +37 Проголосовать: не нравится
Finally my turn to say......
»
2 года назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

I hope we will be honest enough to refrain who have participated in Yandex Cup. Otherwise, it will adversely affect the rating distribution. Because you know, the problem authored by "tourist" will surely hold a huge score.

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

:O tourist problem

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

I HOPE I GET +1 DELTA IN THIS CONTEST

why soo many downvotes ?? just why?

»
2 года назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится
Meme
»
2 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

jdurie

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

I don't understand why risking the round with putting an already used problem usually when we find a known problem by mistakes it creates a lot of complaints from contestants, how about now when they know that the problem already exist , probably some people will try to find it now. I'm just curious about why did you go with this decision ?

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

O tourist problem. The problem gonna be nice.

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

congratulations on the first coordinating

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

where can I find Yandex Club problems Please

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

My first div1 finally

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

If only one problem is from the Yandex Cup Finals, then how about not using it and making a 5-problems round? I planned to participate in this round but now can't :(

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

What is the point in including an already used problem? It excludes the people who have already seen it from participating, and the ones who haven't will have no guarantee that everyone else will be honest and not participate if they've seen it.

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

    There are only the people that were at the Yandex Cup Finals and participated in algorithms that have seen the problem. I think making sure that $$$19$$$ people do not participate is not that hard to do, and no big concern. Although I do agree I would like to participate, but can't now.

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

omg tourist round

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

Hope everyone will not get stuck in A, B and C

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

My first Div.1,ok I'm ready to go back to the Expert

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

How to solve D?

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

    I was able to do a construction like:

    Add powers of 2 starting from 1 to our ans array and keep a running sum of ans sum_ans until adding another power of 2 makes sum_ans >= k. In that case, add (k — sum_ans — 1) to ans so the ans array can have all subsequences from 1 to k — 1.

    And after that you are able to add 2 * k, 4 * k, 8 * k ... to the array until the sum of array exceeds or is equal to n. But we will have some gaps where subsequences don't sum to. We can add k + 1 and 3 * k to the array to fill these gaps.

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

loved C , even though i couldn't solve it

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

how to do Div2 E?

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

Loved the problems.
Thanks for the round!

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

How I solved E: open Minecraft and

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

How to do C? 😭 😭 😭

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

Guessforces

Literally just guess greedy works in C and get +30 rating orz

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

Good round. I enjoyed the problems.

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

How to solve D(div-2) B(div 1) ?

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

Two boring implementation problems in 1D and 1E. Worst round of this year.

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

I might be biased, but I find it impossible to appreciate Div1 D. I guess messy caseworks are not interesting to most participants, so problem setters might consider using fewer such problems.

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

i spent way too much time overthinking on A and B and wasted like an hour....

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

I had a construction for 1E that used at most $$$4 \cdot 10^6$$$ operations instead of $$$4 \cdot 10^5$$$ :( though I guess that's where the difficulty of the problem is meant to come from.

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

If you are failing to come up with good problems, try not to propose a contest next time

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

I think i have the logic for D1C/D2E, could anyone point out if there is anything wrong with it please.

Observations:

1) You can think of the binary string as segments of 1's and 0's. If the length of the segment is even reduce it to 2 and if it is odd reduce it to 1, it won't affect the final answer, can't proof this one arrived at this from casework.

2) After this you can greedily construct the answer from one end, since folding requires an even length palindrome and odd in some edge cases, just iterate on the string and fold it as soon as you see an opportunity to do so. This works since even if you were do some other folding operation on these elements later on, the final optimal answer would still end up being the same.

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

Bruh what is this problem B? Just guesswork honestly wtf.

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

Though in the problem setter's defense

  • We have Russian probs (i.e. Guessforces)
  • We have a Chinese prob (Nim)
  • We have American probs (i.e. implementation)

So it's a pretty balanced round and it's just that everyone is used to Guessforces...

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

Div1 B / Div2 D seems quite similar to https://atcoder.jp/contests/DEGwer2023/tasks/1202Contest_j :)

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

for Div2D/1B, is value of n really matter under constraint? n <= 1e6.

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

in div2C shouldn't answer for 1 2 5 6 and 1 2 5 6 7 different? ( d seems beautiful but couldn't solve it )

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

    both of them Alice can win

    • 1 2 5 6 Alice remove 1
    • 0 1 4 5 Bob remove 1
    • 0 0 3 4 Alice remove 2
    • 0 0 1 2 Bob remove 1
    • 0 0 0 1 Alice remove 1
    • then she win
    • =================================================
    • 2nd example
    • 1 2 5 6 7 Alice remove 1
    • 0 1 4 5 6 Bob remove 1
    • 0 0 3 4 5 Alice remove 3
    • 0 0 0 1 2 Bob remove 1
    • 0 0 0 0 1 Alice remove 1
    • then she win
    • »
      »
      »
      2 года назад, скрыть # ^ |
      Rev. 2  
      Проголосовать: нравится +1 Проголосовать: не нравится

      oh now i get it , first time if its one alice dont have any choice but if its other than one then she will pick x or x-1 .

      i am noob

      Thank you so much for clearing doubt.

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

As a personal review by cyan-blue contestant participating Div2:

==

A is hard to find and prove the answer comparing with another D2A.

B also harder than before, but not as much as A and C.

C is awesome. It's very easy to get the wrong solution, and if then cannot get the answer after many challenges. Wrong solution using Sprague-Grundy get correct answer with all examples, and that's why I didn't even think about abandon wrong solution and do it again without anything.

D is also ad-hoc. I got answer with 1 and a half A4 paper with calculation.

Each problem was pretty satisfying, and I know that I shouldn't complain about the problem construction just because cannot getting a satisfactory result. But ABCD all are so ad-hoc.

I think one or two ad-hoc is enought for single Div2. I do not have any intent to complain. But at this point, I wonder why you brought too many ad-hoc problems...

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

    I feel almost the same

    A was unusually hard, given that most Div2A, 800 rated problems requires no more than counting, sorting, parity check..

    And 4 observation & ad-hoc problems in row is just bad.

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

    I genuinely want to know this. What exactly comes under an ad-hoc problem?

    If the problem is not directly asking some data structure/algorithm, does it come under ad-hoc? Because then I've seen people complaining that the problems are standard.

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

    Ad hoc problems are the purest forms of problem solving. An ideal contest would have 100% ad hoc problems. (Ad hoc literally means that this problem is unique from previously seen problems, so surely thats better right?)

    Im not saying adhoc => good rather good => ad hoc

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

I wish everyone will do good in the contest :) ;

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

Great pretests for C.. Simply WOW

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

I had an interesting situation for div 1 problem A. In my first attempt I forgot to unique the elements and I got WA6. It looks weird for me, and I think this is made intentionally.

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

My submition to problem c did not entered the queue to be judged. it is still apears to me that it passed the pretest cases after the final standings. Does anyone know what should i do? 258453668

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

Div1C is a much easier version of problem 1394E. I know that it is obviously an overkill to use the solution of that problem, but this obviously brought some unfairness to this round. Added that B was also originally an atcoder problem, this round just can't be called perfect.

I myself have done both the atcoder problem and 1394E beforehand, so I can quickly think of both solutions (though the one for C was the more complicated one). It was my fault to make a mistake when implementing and messing everything up, but I did feel that seeing these problems will indeed make solving them in the contest easier.

I'm not blaming the author or anything because the problems were not intentionally copied so that's OK. But maybe next time just devote more time in the contest? 1394E is right from codeforces and many high rated users have done it. If more testers were involved or if only the author could google a bit more about this folding process, situations like this could definitely be avoided.

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

My submission for problem C has not been judged 258443367. Please fix this soon.

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

I see a lot of hate in the comments. I hope it doesn't discourage the author from making more contests. I personally found ALL (div1) the problems very interesting!

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

literally one of the best contest statements easy to understand not annoying respect for problem setters

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

todays C in div2 , many got wrong ans on test 14 , this gave me a chance for looking into the cheaters today as the solution which they copied most likely had wrong ans on test case 14 as many solutions are exact same and having wrong answer on test case 14 only . like for these: 258453115 258453415 258453136 258453124,258453112 258458444 i request to ban these cheaters once and for all and please once look for all those others who had wrong answer on test case 14 only . Those hacked ones would be having many more ones who tried cheating but failed due to WA . MikeMirzayanov Vladosiya

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

what would you say is the rating for Div2 E?

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

It was too difficult to write the code of Div1 D.

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

Congratulations to Jiangly!

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

I received a notification regarding a high degree of similarity between my solution (258432282) for problem 1966B and other submissions. I understand the platform's strict policy against plagiarism and unintentional leakage.

I want to assure you that the code similarity was purely coincidental. Given the nature of the problem involving matrix manipulation, it's possible for solutions to converge on similar structures and approaches, especially when following a common thought process.

I can confirm that I did not engage in any form of collaboration or share my code publicly (including using ideone.com with default settings).

I kindly request your understanding of this situation and hope to avoid any penalties or account blockage. I would be grateful if you would not skip my submissions in this contest. I value fair competition and would never intentionally violate the rules.

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

Regarding the coincidence of my decision with another participant in the competition. I have no proof in the form of published code before the start of the competition. But I ask you to take into account that the solution to the problem that I came up with (and apparently not only me) is very simple and there are not many ways to implement it quickly and simply. I admit that I violated the rules of fair competition 1.5 years ago. I realized my mistakes and no longer violated the rules of fair competition. I hope you won't ban anyone for this coincidence.