Блог пользователя Atomic-Jellyfish

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

Hello, Codeforces!

I'm pleased to invite you to Codeforces Round 901 (Div. 1) and Codeforces Round 901 (Div. 2). It starts on Sep/30/2023 17:35 (Moscow time). It also means, the National Day of China arrives during the round. Wish you a nice vacation! 🎉🎉🎉

For both divisions, you will have 3 hours to solve 7 problems.

I would like to thank:

Especially, I would like to thank errorgorn for his great contribution to the round, njwrz for providing user solutions for all the problems, Kevin114514 for making the announcement and tutorial more readable.

Finally and most importantly, I would like to thank PersistentLife for helping me with everything patiently all the time. This round can't happen without him.

The main character of the problems will be Jellyfish, a sweet little girl. 🍏🍏🍏

Score distribution:

  • Div.1: $$$500$$$ − $$$1250$$$ − $$$1500$$$ − $$$2250$$$ − $$$3000$$$ − $$$4000$$$ − $$$5000$$$

  • Div.2: $$$500$$$ − $$$1000$$$ − $$$1000$$$ − $$$1250$$$ − $$$2000$$$ − $$$2250$$$ − $$$3000$$$

Good Luck & Have Fun! 🔥🔥🔥

UPD1: Editorial is out.

UPD2: Congratulations to the winners!

first solves in Div.1
first solves in Div.2
  • Проголосовать: нравится
  • +178
  • Проголосовать: не нравится

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

orz

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

Hi

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

fun fact about Div $$$1$$$. $$$5000 + 4000 > 500 + 1250 + 1500 + 2250 + 3000$$$

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

StO

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

As a tester, I enjoyed the round and found some very nice problems! I recommend you to participate.

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

As a tester, I have no clue how come we have seven problems for each division now.

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

Do Gr-app Dream of Electric Jellyfish?

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

Wow, the round have many tester including thenymphsofdelphi — one of the Vietnamese strongest coder. So the round must be good.

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

orz njwrz for providing user solutions for all the problems!

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

As a tester, I really love some of the problems in this round!

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

thankyou codeforces for giving java 21 support , it was launched just a week ago and is now available to submit on codeforces

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

As a tester,I really enjoyed the problems in this round. And div.1 G is a difficult and interesting problem, hope someone can solve it in the contest!

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

As a tester, I can say that the problems are very educational and I really enjoyed them! Hope you have fun practicing and good luck to all!

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

OMG 5000 D1G, so heavy round...

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

Hope to reach expert on this round. Good luck to everybody participating!

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

Unfortunately conflicts with ICPC North America Qualifier :(

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

Exciting, it'll be hard to wait 3 days, hope to get at least +5. GL & HF

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

Honored to be a tester!QwQ

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

As a tester, I recommend the Round to upgrade your rating ^_^

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

As a participant, I predict that this contest will be perfect!

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

As a tester,I found many good problems in this round. Wish you good luck~ sto Atomic-Jellyfish

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

As a tester, I had fun with the problems and I hope you do too!

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

hi every one i have aquestion how i can get (Contribution)??

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

.

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

Hope my rating can be risen!

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

Look at the score distribution, so weird...

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

omg 2 festivals round

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

Woah, a 3-hour round. I, personally, will not be able to focus for that long :sob:

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

Will try my best to reach the specialist.

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

Only one author for all problems? .... Oh, he is Atomic-Jellyfish, it's okay.

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

Hopefully I will make optimal use of the 3 hours, but not go to problem C or D and feel hopeless

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

Clashing with LeetCode Biweekly Contest :(. PLease try to schedule these at some different times in future.

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

    wdym, I think Leetcode should reschedule theirs, not the other way

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

      LC contests are always at the same time. I will give LC contest because they arent mathforces af

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

        But Codeforces contests are almost always held at the same time as well. I don't see any logic in your statement. Maybe you should get your priorities straight with a grain of reasoning.

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

          I can predict when will there be a LC contest 1 year from now.

          Can you do the same for CF contest? Can you tell me whether there would be a CF contest at 5th Jan 2024.

          Try to get my point instead of just arguing for the sake of argument.

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

            No, but at least I know most of them will be held at the same hour of day. I know rescheduling is a hard decision. But how does the schedule being predictable account for deciding that one contest should reschedule in favor for another? Tell me. You're saying you have a point. Tell me where your point lies.

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

        I too prefer contests where I dont need to think and just regurgitate my data structures and algorithms knowledge.

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

        CF contests are way more fun than LC contests

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

    What is LeetCode?

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

    -- deleted because my memory sucks--

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

hello.

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

21h35 -> 00h35 in VN x_x

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

Yeaah!festival round! hope i can increase my rating! Orz

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

rated?

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

hopefully atleast +6 this time

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

If you think that person who did pupil testing is a pupil, then you are a CLown1331

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

This round is very special! It has 7 problems and 3h to solve problems.

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

I just broke up because I declined my girlfriend's invitation to go out tonight so I could participate in Codeforces contest :D

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

As a tester. I enjoyed the round

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

Can't wait to solve 4 problems in Div2 for the first time. I hope i reach specialist today. Good luck everyone.

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

This may be my first time to take part in div1. Hope I can be a master. QAQ

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

Happy the National Day of China!!!

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

Grandmaster when?

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

Happy Chinese National Day:D

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

My first Div1.

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

I'm so excited about this one,Im going to fight for C today really hard.

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

scary score distribution. 1250 to 2000 jump

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

LOL CLown1331 is actually a real clown

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

hope to get positive delta :)

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

I'm using Chrone on Mac. The digits in equations are in sans-serif font, which makes it really annoying to see some of the eqautions. Does anybody experienced this before or have an idea how to resolve it? It seems it only happens in CodeForces, and with other browsers like Safari this does not happen.

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

    Try m1.codeforces.com (usually refresh will work when I see this (but I don't use chrome :( idk if it will also work on chrome

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

      I want to try, but there's no way to take a look at a problem statement until the contest start...

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

        sad :( maybe you can try to save the page before mathjax works. read the words between $s may help(?

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

Why are two starting letters Black in MagicalFlower handle? :O

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

tourist vs Benq Round

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

What shoud I understand form score distribution

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

I don't have any fun in it

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

    This is the first contest during which I went to its announcement ._.

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

I'll never ever take part in Chinese contests again. Ծ_Ծ

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

I think that I willn't participate in Chinese rounds after this.

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

this comment is deleted

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

Thank you for giving me an unhappy holiday :(

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

Worst vacation ever. Code always failing on pretest 2 :(

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

How many math questions do you need?

Problem Setter: Yes

P.S: (just my opinion) Didn't enjoy much, where I could think of using algorithms for mid-rated problems rather than checking my mathematical ability :(

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

Casting an ancient Roman curse on the round author

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

That was indeed a llong round.

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

Who in their right mind would think Div2B is 1000 rated, and is the same difficulty as Div2C? Have the authors actually lost touch with lower rated contestants? There has to be more pupil and specialist testing for future contests.

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

How do you solve div1C? I could probably have done it if output format was modulo a prime instead of double but now I don't know

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

mathforces

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

Where is testers for specialists??:))

»
8 месяцев назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится
Graph Representation of Test Case 2

In problem Div1C/Div2F, in test case 2, how is the answer 0.625?

Except node 5, every other node has possibility 1 for successful mission.

If at node 1, and Asuka select v2 = 5, v1 can be 2,3,4. One of these 3 roads will get destroyed and with remaining roads we can always reach 7.

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

    Jellyfish will not know Asuka's choice before making her choice.

    I also got stuck in the same place as you, but I asked for clarification and this was the response.

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

    I think Jellyfish picks before Asuka, so she cannot mirror her choice.

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

    ohhh, got confused becoz of this statement

    Jellyfish knows that Asuka will choose a road randomly. Now, Jellyfish wants to know, if she chooses the roads optimally, what is the maximum probability of the mission being successful.

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

How to solve D1B?

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

How to do D2F? I know it is tree dp, but how to calculate the probability at each vertex?

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

orzdevinwang :)

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

Can someone who solved all problems in Div.2, explain the problems?

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

If I don't get FST, It will be my best performance ever.

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

How to solve C.

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

Refreshing when actual problems, for my level, start from B :) .

Thanks for the contest!

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

is test case 1 correct for problem a ? 5 3 3 1 1 7 suppose timer decreases 3 -> 2 — > 1 (here we used tool 1 and 2) 2 -> 1 (we use tool 3) 5 -> 4 -> 3 -> 2 -> 1 -> 0 it should be 11 this way :( i didnt get the problem statement i guess

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

    I think you already noticed this can be solved by Greedy approach.
    For the test case #1, it should be like

    | t | b |
    | 0 | 3 | start
    | 1 | 3 -> 2 | do nothing
    | 2 | 2 -> 3 -> 2 | use tool #1
    | 3 | 2 -> 3 -> 2 | use tool #2
    | 4 | 2 -> 5 -> 4 | use tool #3
    | 5 | 4 -> 3 | do nothing
    | 6 | 3 -> 2 | do nothing
    | 7 | 2 -> 1 | do nothing
    | 8 | 1 -> 0 | do nothing
    | 9 | 0 | bomb blows

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

I cannot clutch B I am going to kms

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

What's the casework solution of D1A?

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

    so if u observe if k is odd that means last turn would have been of jellyfish and he can take max value from Gellyfish or not take it

    int ansmx=sum; ansmx=max(ansmx,sum-mn1+mx2); cout<<ansmx<<endl;

    kinda like this if it takes or it not takes.

    why this works is because imagine first move u take max from b then on b's turn it would take back the maximum of it and it will continue like this and since k is odd last turn would be of a so it would be able to get any two of values (if it takes or not takes). second case when k is even : so we got two case (if(min(a)>max(b)){ so a would try to not take any value from b but since b turn is last it would remove max of a and give min b >> cout<<sum-mx1+mn2<<endl; now second case when max(b)>=min(a) it means a will take max of b and replace with min a but since b has last turn it would take away max(max(a),max(b)) and give min(min(a),min(b)): sum+=mx2; sum-=mn1; int ansmx=sum; ansmx=min(ansmx,sum-mx3+mn3); cout<<ansmx<<endl; }

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

i dont think i've been this afraid of systests in years

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

The server was down for the last few minutes (403 Forbidden) :(

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

What is the intended solution for B? I did something fishy and got AC but with 1980 ms (so high chance I fail systest) I ran normal BFS and realise around 2000 states in total which should be fast enough, if not because of a map, so I did some preprocessing to reduce a b c d and m into 8 bit numbers (since bit combinations of at a particular position of (a,b,m) will give the same result of (c,d) after some operations), then I use a global array to store distances to pass.

Also if not because of the editorial of this: https://codeforces.com/contest/1866/problem/M I wont have solved D

As expected, I failed systest... (rip IGM dreams)

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

    I do the exact same thing and it ran in ~900ms without anything special. I'd guess this is the intended solution, not sure why yours performs worse.

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

    I did the same and got a lot of TLE.

    Than i started to memorize the solutions for the possible (a,b,c,d,m) tuples among the test cases -> pretests passsed with 670 ms xd

    So there are several identical testcases in a test

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

    I did the same thing, though I sorted the testcases in such a way, that I only run a single BFS for the same 8bit number. And then un-sorted testcases into initial order. It passed in 170ms.

    I also used a vector instead of a map to keep the distances.

    Awesome problem!

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

Is there any hopes of this contest getting unrated?

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

2 Hours spending on Problem E but kept getting WA!!!

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

I actually think Div.1 E is too standard. It equals to asking the number of Cartesian tree with $$$n$$$ nodes and the sum of subtree size $$$\geq lim$$$. I suspect that there is an original problem for that.

Also, I think Div.1 B is too hard for its place. Observing the standings, I think it's better to swap B and C.

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

Div.1 A = Div.2 B but Div.1 B = Div.2 E What's this?

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

    Fr it threw me off so much. After struggling with B and C for so much time, I open the div 2 standings to see my friends, and all of them have solved 2D, that too fast!!!

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

Worst contest ever. Need to practice more and more..

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

How to calculate the probability for transition from $$$u \rightarrow v$$$ in Div1C?

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

Could not submit D becuase the code length limit exceeded. When I finally minimized the code it was two minutes after the content had ended. That's my fault but. Please. Increase. Code. Length. Limit.

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

Although they drove me mad...

but 1B and 1C are very VERY interesting problem with fantastic trick! (for me)

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

what a bad contest

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

what type of problem is d1b :sob:

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

Let's discuss the solutions.

How to solve D?

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

Though there are 7 tasks, so heavy to treat D1ABC...
I guess we can have two Div1 rounds from this problemset.

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

div2 A,B were cool C got on my nerves it's the kind of math i don't like.

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

Is there any legitimate solution for D1D besides "idk ternary search should work to optimize this dp" (I dont like waiting for editorial so that is why I ask)

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

As a participant, I didn't have fun with the problems

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

Div1 A to Div1 B C was such a huge difficulty jump :/

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

    Div 1's A was Div 2's B.

    Don't know why this was done, but that might contribute to the difficulty spike since it's like if a Div 2 contest went from a B to a E.

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

      Don't know about Div2 E, but I wasn't able to solve Div2 B, rather I solved D and C. .So, for me B preceding E, rather than C or D is very correct. :_)

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

Questions were tricky rather than difficult.

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

Div1 D seems very similar to a problem from SEERC22: https://codeforces.com/gym/104114/problem/M.

EDIT: the same "local improvement" approach doesn't work in the new problem, nvm

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

Expert, here i come

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

I think I missed the C because it was missing a '!' in the code My idea was that it was only possible if there were no more prime factors (with the exception of 2) in m than in n.

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

Can someone tell me how to solve "B" that is B. Jellyfish and Game?

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

    I can't prove it, but if they play 4 times the moves will start to repeat, so I simulated 5 and if the number was even I simulated one more.

    225979586

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

    If K is odd jellyfish can always take max of Gellyfish and give him his minimum, and then Gellyfish will try to get his maximum back in next move and then again jellyfish will take it back in another move and it continues this way until all K rounds.

    If K is even, jellyfish can choose not to move if his min is greater then Gellyfish max. But still in this case Gellyfish will try to take jellyfish max as it will benefit him, and again like the odd case the game continues but this time Gellyfish would have the last move. 226072584

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

RIP

RIP

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

It seems that problem D in div 2 can be done in $$$O(n \log n)$$$ with slope optimization or Lichao segment tree.

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

Where does D1C probability dp formula come from?

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

I have solved 4 problems for the first time in div 2 !(yeee)

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

"Note that the sum of n over all test cases is not bounded." what does this mean in Div2 A problem?

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

    In many tasks you will see statement like "sum of n over all test cases <= 200000" but here there is no guarantee (max n could be max n per test case * max test case)

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

Good contest. I solved A quickly but tried solving B using casework but it was very complicated and got 5 WA.
Solved it 5 min after the contest ended. Solution.

Will get negative delta Sadge :(

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

this jellyfish prick so hard to my rating. just because i tried to solve with int instead of long in java.

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

Todays Contest was Awesome Thank You Atomic-Jellyfish and everyone who made this round possible .

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

I dedicate my success in today's round to my two senpais: alinp and BarbutaRobert! Btw I hope TimDee didn't cheat today!

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

how the equation m×|S|−n come out in the problem Div2C? Can anyone explain this? There is no any additional comments about this in Editorial.

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

    Let us assume that $$$\frac{m}{\text{gcd}(n, m)}$$$ is a power of $$$2$$$ . So we can say that $$$\frac{n}{m}$$$ can be finitely represented as some binary representation like $$$\sum_{i \in S} \frac{1}{2^i}$$$.Each individual people is going to get $$$\frac{n}{m}$$$ weight of apples and he will get this weight in denominations of $$$\frac{1}{2^i}$$$ . For each $$$i$$$ in $$$\sum_{i \in S} \frac{1}{2^i}$$$ we need to have exactly $$$m$$$ pieces . For an apple of weight $$$1$$$ we can get $$$2^x$$$ pieces each weighting $$$\frac{1}{2^x}$$$ and this will cost $$$2^x - 1$$$ cuts. For each $$$i$$$ in $$$\sum_{i \in S} \frac{1}{2^i}$$$ we need to have exactly $$$m$$$ pieces each weighting $$$\frac{1}{2^i}$$$ and it can be done using $$$\frac{m}{2^i}$$$ number of apples having initial weight of $$$1$$$ and for each apples it will cost $$$2^i - 1$$$ cuts . For each $$$i$$$ in $$$\sum_{i \in S} \frac{1}{2^i}$$$ we would need exactly $$$\frac{m}{2^i}(2^i - 1)$$$ cuts . Total number of cuts will be $$$\sum_{i \in S} \left(\frac{m}{2^i}(2^i - 1)\right)$$$ . We know that $$$\frac{n}{m} = \sum_{i \in S} \frac{1}{2^i}$$$, then $$$n = m \sum_{i \in S} \frac{1}{2^i}$$$.So, the expression $$$\sum_{i \in S} \left(\frac{m}{2^i}(2^i - 1)\right) = \sum_{i \in S} \left(m - \frac{m}{2^i}\right) = \sum_{i \in S} m - \sum_{i \in S} \frac{m}{2^i} = m|S| - n$$$.

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

Speedforces :o

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

Странный раунд, но в принципе задачи нетипичные для дивов, было даже интересно решать)

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

In Div1C, How do we calculate the probability transition formula for the cases where the out degree is even. For odd it will be just $$$1/n$$$

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

Thanks to tourist, we found out that the tests in Div1D were not maximally strong.

In my dynamic programming I search for the best value only in the heuristically selected range [previousBest - 5, previousBest + 11]. This got me OK verdict. However, there is a test, where my solution is not optimal enough!

Input:

10 2633

My output:

23.00521162478544

Actual answer, when heuristic is turned off:

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

    Just wanted the researched data to be public. It appears that searching [previousBest - 12, previousBest + 1] is almost always enough, with just a few exceptions:

    (6, 1754):	-26
    (7, 1641):	-23
    (7, 2485):	-13
    (8, 451):	-14
    (8, 2972):	-17
    (9, 1091):	-22
    (9, 1759):	-13
    (10, 1173):	-19
    (10, 2623):	-56
    (11, 1602):	-15
    (11, 2616):	-36
    (12, 1077):	-17
    (12, 2588):	-15
    (13, 677):	-16
    (13, 2015):	-27
    (14, 1153):	-23
    (15, 1957):	-33
    (16, 2523):	-22
    (18, 1219):	-14
    (19, 1819):	-20
    (20, 2245):	-15
    (20, 2709):	-26
    (22, 1866):	-20
    (23, 1052):	-15
    (23, 2628):	-24
    (24, 1412):	-16
    (25, 1894):	-19
    (26, 2539):	-23
    

    The listed exceptions are "(n, m — n): shift_from_previousBest"

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

    I just tried to hack my AC solution using the test you provided here and it worked.

    So I could have FSTed :O

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

Chinese rounds are great you have to admit, the only thing we need is getting more foreign coders to test

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

The test in Div2 E is too weak. See this: https://codeforces.com/contest/1875/submission/226052852

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

Again a devastating Round!!!.. for me

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

Div2B boosted my carefulness before submitting.

Div2C is really nice, I jumped into the WA submission and realized my mistake right after the system test.

Thanks guys for the contest!

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

Never felt more devastated! Completed 4 ques in 1:10, hoping for a very good increase. But TLE in D system test 18. Changed just a map to unordered map and it passed :( I didn't even need an ordered map, didn't know it would have such high penalty :(

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

write a wrong solution to 1C and hacked by znstz2018 a good contest but not that good for a retired

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

Hahahaha, laugh

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

bruh, div1a is div2b and div1b is div2e :skull:

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

Is it just me or was this div2 a lot easier than usual?

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

That was an interesting contest!

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

Good luck everyone!

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

sto

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

It was a coincident in this contest of code matching. I was writing my code using ideone.com in public mode didn't know this would happen. I am sorry for what happened in this contest, and my variables name are simple and general. Now onwards going to use vs code and unique variables.

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

i used ideone and i didn't know about the public thing and you can clearly see that he is the one copying from me because this is the code template i use and you can find it in most of my submissions

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

c question was pure gold in div 1.