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

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

Hello, Codeforces!

We are glad to invite you to participate in Codeforces Round 949 (Div. 2), which will start on May/31/2024 13:05 (Moscow time). Note the unusual start time of the round. You will be given 6 problems and 2 hours to solve them.

This round will be rated for participants whose rating is below 2100. Participants with higher rating can participate unofficially.

The problems were authored and prepared by sinsop90, yinhee and me.

I would like to thank:

Scoring distribution: $$$500 - 1000 - 1500 - 2000 - 2500 - 3500$$$.

Good luck & Have fun!

UPD: Congratulations to the winners!

Div 2:

  1. cyb0101
  2. Feduk_Pro_Spb
  3. whale_0086
  4. graphcity
  5. grass8cos

Div. 1 + Div. 2:

  1. maspy
  2. Little_Bunny
  3. Rubikun
  4. femboy-wannabe
  5. turmax

Editorial and also Simplified Chinese Editorial are out.

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

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

As a tester, there are some beautiful ideas in the tasks, and I encourage everyone to participate!

»
23 месяца назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится
Silly Question which I can't resist to ask:
»
23 месяца назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

It will be my first contest in Codeforces, and I am looking forward to it!

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

As a first-time tester and one of the writers, I'm certain that you will have a good experience in this round and learn a lot. Just enjoy yourself:)

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

As a tester, hope you can enjoy the problems and get a positive rating $$$\Delta$$$!

Meanwhile, good luck to the authors who are about to attend an important examination -- Zhongkao!

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

As a tester, I like the problem set and hope you enjoy it too!

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

Still waiting for the Educational Round blog

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

Codeforces Round 949! One step closer to the milestone Round 950! <3

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

please change the time of the contest it is in the time of the pray in Egypt and we want to participate

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

Please delegate it one more hour, Many muslim guys in the middle east won't be able to join because of the prayer of jumaa.

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

HOPE IN THIS ROUND I'D REACH MY GOAL BEFORE SUMMER BEGUN

GL FOR EVERY PERSON,WHO READING THIS COMMENT

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

As a Chinese CPer, I'm happy with the start time.

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

As a tester, I would like to say that the problems are wonderful!

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

As a tester, I'm zltzlt fan.

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

looking forward to give this round as a cyan :)

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

As a writer, I am a fan of zltzlt.

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

Hope the competition topic is more interesting!

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

As a tester, I think this round will be educational and fun.

I think all the problems are great.

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

OMG Finally 18:05 round

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

It would be great if you can delay it by 1 hour, as many middle east contestants will miss it due to a weekly prayer at that time.

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

Arithmetic Progression in scoring distribution!!!

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

Giving the round to compensate the loss in educational

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

Fun fact: the setter has solved 4000+ problems on codeforces and 10k+ problems on a Chinese online judge(which provide the remote judge service of codeforces and atcoder). I'm so shocked by his hard work.

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

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

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

If I don't solve A B and C then it's gg

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

As a PST kid, I somehow managed to wake up for it :)

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

Wish positive delta in this round!

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

Will queue issues appear in contest because of EDU 166 system testing?

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

Will there be delays due to an overlap with yesterday's Educational round's System Testing?

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

orz zltzlt

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

Tough contest.

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

This didn't seem like a Div. 2.

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

It was more like Div. 1.5

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

Any smart solution for C? Feels like another boring implementation task that I can't care less debugging. Took a huge L today.

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

      Can you please explain your intuition and solution ?

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

        If there are no set values, just do 1 2 repeated.

        If there is some value set then the prefix can be obtained from the first value by halfing. If you get to 1 you double because you cannot half. The suffix is similar.

        Now to complete middle parts. Say we are bounded by $$$a$$$ and $$$b$$$. If $$$a \gt b$$$ then we must half $$$a$$$ in order to get closer to $$$b$$$. If we don't then $$$a$$$ was half of its right neighbour, but that only increases the distance to $$$b$$$ and we still will have to half at some point. We reduced the problem to a smaller instance (from $$$\frac a 2$$$ to $$$b$$$ and one less element). Similarly you can do the same if $$$b \gt a$$$. There is one issue, if both $$$a$$$ and $$$b$$$ are 1, then this does not work but you can just insert a 2 instead.

        In the end you want to check the original problem constraints (you did not get an invalid array). This can be computed as you complete the array.

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

What the fuck of the C???????????

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

loved problem B.

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

Pure math + wrong difficulty estimation from coordinators. Typical Codeforces.

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

the authors cooked

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

C is not a C. D is not a D.

I think CDEF should be DEFG, and insert an easier C.

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

I hate it when a math problem (problem D) appears in my interesting interval

(the problem is nothing wrong tho, just I'm too skill issued)

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

Problem B seemed tougher as compared to normal div2B problem ...

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

Tough contest. We weren't given enough time.

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

Brother, only the time was not unusual; To me, problem 'B' was also unusual, aaand the whole contest was unusual too!!!

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

my method for C

assume L is somewhere a[i]!=-1 ,R is next one that a[i]!=-1

then when a[L]>a[R] we can make a[L+1]=a[L]/2

when a[L]<=a[R] we can make a[R-1]=a[R]/2

if a[L]==a[R]==1 we can make a[L+1]=2

my english is so bad so dont critisize me

this is my code and i know it is ugly

https://mirror.codeforces.com/contest/1981/submission/263485331

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

Stucked on C for $$$45$$$ minutes and finally got 1 place lower than sevlll777, who solved 1 problem less than me. The slowest episode ever.

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

Who can give me C's solution?

I did it for 1h30mins,but i have no ideas.

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

    You can do 3 ops when moving from $$$i$$$ to $$$i+1$$$, namely divide by 2 (and floor), or multiply by 2, or multiply by 2 and add 1. It is easy to see that in enough steps, any number can be achieved with these operations. You compute the minimum operations, and if the distance is less than that, or the distance minus the minimum operations is odd, then it's impossible. The implementation is a bit tricky though...

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

I'm officially having skill issue with constructive problems (again) :D

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

how to F

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

a B-like A a C-like B a D-like C and a C-like D Bruh...

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

I actually enjoyed solving problem C a lot. but aren't the rounds a little too hard? there was literally only one full solve which came from a person probably above div.2 level. still, cool problems

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

It wasn't fun at all

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

Will the rating changes of this round be calculated on the ratings before the EDU or on the updated ratings of the EDU?

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

Adhoc dominates codeforces nowadays a lot.

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

Abnormal contest with CNOI-style problems.

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

Problem C did give me a lesson...

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

In contest i tried second question for 1 hour and 54 minutes still not able to solve it :(

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

not only not enough time but the problems were harder than usual div 2 problems

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

I love the $$$O(\frac{n^2}{\ln n})$$$ solution of problem F, however I spent my whole time in $$$O(n\log n)$$$ overcomplicated segment tree merging solution and mixed indices like tr[x<<1](should be tr[tr[x].ls]) then finally finished 10 minutes after the contest...

edit: I got the first blood!! so funny XD

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

I think it will be more balanced to insert a *1500 problem between B and C.

Difficulty prediction (luogu): Orange Yellow Green Blue Blue (Black)

Difficulty prediction (Codeforces): 900 1400 1700 2200 2400 (3200)

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

After the Educational round I thought, "I am going to get a healthy positive delta". The rating is not updated yet. But after this unusual 949 round I am scared of being Pupil again!!!

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

Wait. maspy FSTed on problem F???

A 0-solve D2F??

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

got RE on test case 2 of problem c and got accepted after contest. if just had 1 minute more whould get ac

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

a very nice D!! Thanks for the contest.

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

how can calculate rate and educational rate not calculated yet??

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

But I really didn't have fun ...

I think it is too hard for a Div.2 contest.

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

Hi, can someone tell me where my submission for B is going wrong?

https://mirror.codeforces.com/contest/1981/submission/263488201

I converted the decimal numbers (n-1) and (n+m) to binary, and then traversed (from MSB to LSB) and compared their bits. Where ever they differ, that means from that bit onwards all the bits will be 1

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

Am I the only one who felt A is tough than usual div 2 rounds

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

CornerCaseForces

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

BitForces

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

Carrot is not working :( Any other working performance calculator extensions?

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

Chineseforces

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

It might be better to swap the D and E.

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

There are 10 types of people: 1. Those who like bit manipulation. 2. Those who don’t like it.

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

Can anyone explain the approach of C

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

    We can make the problem simpler ...

    => Given a and b in 'a -1 -1 -1 ...(k times) b', is it possible to fill the -1s with numbers >=1 and <=1e8 such that adjacent elements follow either A[i+1] = A[i]/2 or A[i] = A[i+1]/2 ?

    Let's approach to solve it from both ends (now, from the left). Say A[i] = a and A[j] = b, so A[i+1] can be a/2 on division side (call it OP1) or 2a or 2a+1 on multiplication side (call it OP2). So we store the number of such operations in respective maps for both OP1 and OP2 till j-i number of operations.

    Similarly, from the right-hand side. Since the hops between a and b are j-i for any common number x on map_OP1 or map_OP2, we have (say) t = map_OP1_left[x] + map_OP1_right[x] as the total number of hops. If (j-i) and t have different parity, it is not possible for such x to be a convergence point (obvious), so if they have the same parity and t > (j-i), one could just make x from a and b and fill between even hops by *2 and /2 alternatively. You can fill '-1 -1 -1 ... a' and 'b ... -1 -1 -1' ones similarly.

    That's the approach and here's my submission 263482841.

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

Author cooked

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

Can anyone please explain why my following approach for the problem B fails:

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

As a participant, this was a really fun math contest!

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

Basic idea of D was almost exactly same as https://mirror.codeforces.com/problemset/problem/367/C just had to account for self loops and print the path

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

Why unrated participant came first, shouldn't untrusted participants not be allowed

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

after solving a problem of this contest i used to be able to add tags and remove them but now it says no tag edit access is it because i dropped 8 points below CM or its the contest ?

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

Hey! Check out my video solutions for the contest. I've covered Problem A-C from contest here.

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

Love D, but too simple for div2 round

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

Can any one tell me why my code is so slow? Submission: https://mirror.codeforces.com/contest/1981/submission/263742703

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

A probably high rated programmer type7shady, probably CM level has been livestreaming and leaking answers online, solutions upto C were leaked.

Here is the livestream for this round: https://www.youtube.com/watch?v=Px7R7j0uOtQ

Drive Link where all code is uploaded: https://drive.google.com/drive/folders/1T4jvLvOJwWq6R23xJjENJb4AgOHJjPmC

This person also leaked ABCD in the last edu contest, good enough to place cheaters at the high expert — early CM level. zltzlt and MikeMirzayanov please look into this.

  • »
    »
    23 месяца назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится
    • here are proofs of copied codes from telegram by rajeshgarg_vit
    • Proof
    • This account has skipped solutions in 4 different contests , and its +1 now , this account should be banned.
    • »
      »
      »
      23 месяца назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Hi newbie Esdihkid, I think you are new to Codeforces . The main crux of code i.e the logical part can be same for a numerous of people, implementation is what makes your code original, this includes of data structures you used and in what way you used that, of course algorithm may be same for many. Don't worry, You will learn it with time and practice. Also, the past plag I got in this account is because I used to use GPT for implementation in early days when I started cf, who used to give similar implementation to multiple users , but later , I stopped using that too and practiced a lot on my own to improve implementation ability.

      Thanks for the concern tho, I am myself very much against cheating even in academics like college exams or any online competitions , I hope this answers your query, All the best

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

        so how were you able to think and wrote these long codes in just 5-10 min , are you a grandmaster or some ? And that too very similar to ones available on telegram

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

          I did not write them in 5-10 mins, I was trying E,F after B but I could not debug F1 first, so did C,D then did debugging for F1.That is why, there is a time gap between B and C. Also, you can use copilot in vs code for faster typing, which even many CMs use.

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

bad problem C