Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

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

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

Hello Codeforces, and the legends of across $$$999$$$ and more rounds!


wuhudsm, Yugandhar_Master, and I are beyond excited to invite you to Codeforces Round 1000 (Div. 2) at Jan/22/2025 15:05 (Moscow time). Please note the unusual time of the round ($$$\color{red}{2.5}$$$ hours before the usual time)!

The contest contains $$$6$$$ carefully crafted tasks, one of them divided into two subtasks, to be solved in $$$2$$$ hours. You will solve tasks themed around Little John and his shenanigans aimed towards getting his own dream home (featuring, probably, galvanized square steel).

This round could not exist without the thankful help of these so many people:

The score distribution is as follows.


$$$\mathbf{500-1000-1500-2250-2750-(1750+1500)}$$$

Before finishing the announcement, I would like to spoil you a little of how the round's story ends.

Little John worked hard, honest and diligent for years, and finally got a home of his dream.

In that sense, I want You to be like Little John in this round.

Hard, honest and diligent will give you the rewards you deserve.


Anyways, that's all for the announcement; Good luck, and have fun!

UPD1: The score distribution has been announced.

UPD2: The editorial is posted here. Also we have good news that I will post as a separate report blog soon...

Spoiler

UPD3: Congratulations to the winners!

All participants:

  1. sunjia (oops, the user is gone now)
  2. Golovanov399
  3. maspy
  4. jiangbowen
  5. A_G
  6. fnoihzhyan

Rated only:

  1. sunjia (oops, the user is gone now)
  2. fnoihzhyan
  3. RGB_ICPC9
  4. wangzirui123
  5. Network_Error
  6. BSpioneer

UPD4: Anti-LLM Evaluation Report is published — the first of its kind for Div.2! Please kindly take a look if you have some free time or are just interested.

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

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

As a tester, I tested the 1000th round.

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

As a tester, this round was certainly one of the rounds of all time.

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

    The 1000th round is not just a number, but proof that legends live here!

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

As a tester, this is indeed a historical round!

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

As a tester, I didn't really test.

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

As a tester,

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

As a tester, I can confirm that $$$10^2=1000$$$

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

As a non-tester, I commented before SirPh.

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

letssssss gooooooooooo 1000th round!!! Sad I can't participate bc I have final exam :(

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

1e3 Nice

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

1e3

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

As a tester,I was expert when I tested.

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

as a tester, we needed more testers

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

As a tester, this was my first contest for testing.

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

As a non-tester we need more testers

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

Am I the only one who subconsciously thought "Yay, contest 8 in binary!" instead of "Yay, contest 1000!" after reading this? (Yes, that was my actual first thought)

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

As a tester, this is my first "As a tester" comment

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

As a tester the chain is an elaborate plot to farm contribution (and this one too)

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

that sounds like the 8th contest in other words

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

As a tester of Codeforces Round 960 (Div. 2), hope the round will be interesting for you, or learn new knowledge, or get good delta.

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

Wow so very excited to attend the 1000th contest on codeforces !

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

As a tester, I can confirm that firefly is my waifu.

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

A millennium of brilliance! Congratulations, CodeForces! #CF1000

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

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

    Is this a hint that the contest is HARD. Scared but will participate anyways.

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

As a first time tester, it is cool that my first time is in such a special round.

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

Sadly I'd be missing out this round, good luck to all the participants.

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

hope for many bitset problems

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

Quite Excited for the 1000th round :)

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

Why unusual time in 1000th round :(

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

It finally happened

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

As a tester, I am so happy to have tested the 1000th round. Fun fact: 1000 is the smallest composite number after 999.

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

    There are so many fun facts about 1000, for example it has exactly 2 times more prime divisors than 1024.

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

Finally, someone has not forgotten about grey testing. Wait...

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

Wow. 1000 contests. Whatever you have, school, work, whether it is night or early in the morning we must all participate. Let's make the 1000th contest the best ever.

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

As a tester, I FORGOT TO COMMENT

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

Thank you for setting the Round 1000 on the first day of my winter vacation, instead of during the final exam.

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

probably the strongggest tester-lineup ever. orz!

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

First round I tested :)

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

can we know what are the points for every question please :)

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

galvanized steel mentioned!!!!

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

The 1000th contest is at 4AM for me but I'll probably still participate.

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

Seems like no interactives. Saaaad (|;/

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

The Round 1000 with unusual time! A good time for Chinese

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

As an author, I can confirm that gcd of the score distribution is 250, excuse me if it changes to 500.

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

As a participant, I can confirm that the contest has 1000 — 1 problems if we see F1 and F2 as 10 problems.

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

As someone who knows nothing about the round, I hope that:

At least one problem has $$$n \leq 1000$$$.

Every problem has $$$t \leq 1000$$$.

There is a *1000 rated problem (luck based).

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

Bold Score distribution ??? , chromate00 is cooking.

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

I was here !!!

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

Hell yeah baby!!!! excited

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

Why is the monumental codeforces round 1000 at 7am in the definitively best timezone on a weekday??? (did I just piss off a good part of the world? yes and I'm not sorry)

I really wanted to learn about Little John and his galvanized square steel, screws he borrowed from his aunt, and eco-friendly wood veneers

Sadly I guess I wont be able to.

GLHF to those participating, may bitset waifu bless you.

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

why not the usual time :(

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

do i consider trying F after C

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

As a tester, this cunning dogo encourages you all to participates in this round.

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

As a yellow tester, I was able to be promoted to red tester before the contest.

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

As a participant, i will try to solve 10^C Problems :)

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

As a non-tester, I would like to become a tester for any of the rounds. :)

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

Let's go We are in the new era

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

Wow — Just 24 to go until a big round-number milestone!

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

    but I don't think we can see the next milestone after 1024......

    It took 10 years to get to 1000 and we'll probably leave CP by then, but anyways, gl on round 1000.

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

Will this contest use mod = 1e9 + 9 ?

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

The 1000th round of codeforces, also the 1st round in the jiangly era

~(∠・ω< )⌒★

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

I think the D will be difficult, so I will do the D first. If I can't do it, I will give up the contest without any submissions. :(

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

Man it's starting earlier than usual, sad. would have to miss the 1000th round due to my labs at that time :(

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

as a participant, it is my 100th contest

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

as someone who missed 999, i will not miss 1000 round.

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

I'm really excited to take this significant round at 6am on a weekday. Good luck to everyone else participating!

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

I mean, I just have to leave something here to prove I will be in such a historical contest

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

I have moved to a country which is exactly 2.5 hours ahead of my home. Good luck for me that this contest happens to fall at my "usual" time at home. I have to participate for old times sake.

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

Glad to be here for a big milestone.

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

As a tester, I tested the 1000th round.

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

this contest's time make me can't participate, so sad!

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

Participating 1000th round before Ronaldo hits 1000 goals

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

Let's Go!!

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

Hopefully I can become an expert through this contest.Good luck.

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

Waiting

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

As a Chinese student, I think 20:05 UTC+8 is a great time to be tested by a contest.

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

As a non-tester, I believe that this context will be something more than just a context, this is a mark of 1000, we can say that this is a very memorable mark in codeforces itself, for which I very much congratulate them

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

From this round, I’m restarting my journey of giving contests on Codeforces! Best of luck to everyone participating in this contest!

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

It would be great if i could solve 3 problems in 45 mins and 4th one by end of the contest

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

As a participant, I'm gonna participant in a historically legendary round!

I wish success to everyone who is participating and thanks to everyone who tested, problemsetted and overall contributed to this round!

<3

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

It's the time

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

qp

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

ROUND 1000!

WISHING EVERYONE +Δ ON THIS LEGENDARY ROUND!

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

as a newbie, We need more rounds

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

As a participant i hope to reach cyan

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

Thank goodness the time has changed to 20:05(UTC+8)!

Or I'm not able to participate again......

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

1000 less go!!

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

Congratulations to Codeforces for allowing a confirmed cheater to host and write an announcement post for their thousand-th round, which is criticized by a confirmed sub-account (lol)

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

Dominater069 for identifying as green;

So did he test the contest as green or is this him coming out? lol

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

Round 1000! Great!

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

I was here too.

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

Codeforces Round 1000, I'll definitely participate the contest!

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

Really excited to give the 1000th contest of CF.I beginner in CP ,anyone who can advise me how to do CP as a beginner.

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

I started with Round 320 and now at 1000 today! The excitement is still the same. What a ride it's been. Here's to many more!

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

I will give this round from my office :)

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

It's wonderful to be able to participate in such a historical round.

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

I wonder if there will be such day where i would solve div 2 D

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

Came to register for contest and found that contest is almost over. Totally didn't missed to notice the unusual timing.

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

What's up with C? Why is removing the highest degree node, updating degrees, and then removing the highest degree node again wrong?

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

    there may be multiple nodes with the highest degree, meaning arbitrarily choosing one of them may not be optimal.

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

      Counter example please.

      • »
        »
        »
        »
        7 недель назад, # ^ |
        Rev. 4   Проголосовать: нравится +1 Проголосовать: не нравится

        The program should pick non-adjacent nodes if possible. If you pick adjacent nodes, you will have one less connected component than you expect, because the removal of the edge connecting the adjacent nodes does not lead to a new connected component (as there is nothing in between the two nodes — they are adjacent).

        In case there is only one node with the highest degree (for each removal), the idea works; but otherwise, you might pick adjacent nodes (even though you can do the opposite), which leads to the situation described above.

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

          In case there are two nodes for the highest degree it still works because picking a non-maximal node would at best yield the same result than picking two maximal adjacent nodes, so the latter is optimal. But cases where there are three or more such nodes should be handled in a separate manner.

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

        three max degree vertices in a line.

        2 cases => one of the two choosen is middle one.

        other case when middle one not choosen.(more connected parts then above case)

        One test case:

        1

        11

        1 2

        2 3

        2 4

        5 6

        5 7

        5 8

        8 9

        8 10

        8 11

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

    I tried all the highest degree nodes, doing it naively in O(n^2) and got TLE on test 9 (don't know what I was expecting). Waiting for the editorial to find out how to do it correctly.

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

      i also tried all highest degree node but optimally

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

      It's a dp type idea: we solve it for each subtree. For a root of a subtree, i, there are 2 cases: (1) remove i and some descendant, or (2) remove 2 descendants. To do this properly, we have to precalculate mxdeg[v] for all vertices v, denoting the max node degree in v's subtree, excluding v. Just look at my code for further detail.

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

        I don't think I can see your submissions, but the editorial solution seems to suggest bruteforcing the maximum degree vertex and then finding the maximum degree vertex among the resulting subtrees using a priority queue or a multiset. A shame I didn't see that.

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

      the main idea is if there exists a pair of highest degree nodes that are not neighbourhood, one's removal will not affect another one.

      hence if there are 2 highest degree nodes, check if they are neighbourhood. if there are 3 or more, there must exists such pair since it is a tree.

      edit: typo

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

      ans is highest degree + next_highest_degree-1 , and now u have to choose such a node for highest degree that removing it maximize next_highest_degree , cause removal of some node can lead to decreasing it

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

    lets say if u remove highest degree node then degree of surrounding nodes will decrease by one

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

    1 2 / 1 3 / 2 4 / 4 5

    you can consider the case where node 2 is chosen first.

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

    u need to consider two cases, one where the selected nodes are adjacent and another where they are not

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

D kills me.

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

    It's ok! It's the idea to do greedy but remembering past choices so you can undo them when needed!

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

Help me out please why is my DP solution for C giving WA on test 2?

Edit: Nvm I got it. I missed the case where we take 2 descendants.

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

this contest want to make me kill my self

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

i hate myself

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

    nothing can save us, but reborn as gifted Chinese kid next life. there is no way around this is OVER! I'm done with CP

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

Wow opened codeforces the moment contest ended and missing the 1000th contest because of missing the time . Yayy Luck :)

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

I think this contest is perfect! Problems have no mistakes and their qualities are high. I have a nice experience through this contest!

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

forgot to remove my debugging prints on my last submit lol

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

Wasn't able to implement it but here is what i think the solution for F2 is, let use assume that we are trying to find the answer for the first $$$i$$$ segments, we define the score of any segment $$$j$$$ as the number of points inside the segment $$$j$$$, for which $$$j$$$ is the minimal segment i.e. for any point $$$i$$$ and segment $$$(l,r)$$$, this segment is minimal, if $$$l \le i \le r$$$ and there doesn't exist any other segment $$$(l1,r1)$$$ such that $$$l1 \le i \le r1$$$ and $$$r1-l1+1 \lt r-l+1$$$. Now, the answer is the product of the catalan numbers for each segment's score by 2.

To handle addition of segment $$$(l_i,r_i)$$$ efficiently, you just need to find the minimal segment $$$(l,r)$$$ for any point inside $$$(l2,r2)$$$ and change the score of this segment and update the answer. This is a standard problem that can be done in $$$O(logn)$$$.

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

Why am I getting wa on pretest 3 for C? Code In first dfs I tried deleting 2 nodes from subtree of a node. In second I tried deleting current node and one node from its subtree. I kept a check if difference in height of max children node and current node is 1 to subtract 1 for the empty middle portion.

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

Second Question was quite confusing .....

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

My screencast (in Rust). Should be available when video is uploaded.

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

Why my code for C failed at pretest 4, My Code 1. I tried removing highest degree node,then recalculating degrees and then again removing highest degree node

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

thankfully, data structures made round 1000 go terrible!

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

C was quite typical for me I knew i have to remove the two nodes with maximum adjacent nodes I m implementing it wrong ig :(

Can anyone explain to me like a 5 year old

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

    try looking at the case where you have 5 nodes: 1-2-3-4-5.

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

      all in a straight line so 1 connected to 2 and 2 connected to 3 so forth so on.

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

        ;( what was ur approach regarding this

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

          i don't like my approach a lot tbh I think editorial might have a better way. the way I did it was you count how many nodes have highest number of adj nodes (so number of nodes with highest degree). If the number of nodes with highest degree is >= 3 then you know you can basically split it like this twice. ex: if you have 3 nodes with degree 4 you know that 2 of them aren't connected so you can remove them both. else if there are only 2 or 1 nodes with highest degree the algorithm you are doing will work. I just added one if for testing if number of nodes with highest degree is >= 3 and brute forced that answer. I think editorial might have a better way tho :D

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

OpenAI o1 only solved 1 problem.

ChatGPT BTFO XD

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

i am never using accumulate again in my life

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

    You missed the question because of overflow when using accumulate with start value 0?

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

      yeah

      i lost about an hour trying the find the bug it was an overflow due to the 0 being int not long long

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

This cloudfare stoped me from submitting my correct code to E。

It stucked me for about 3 minute。 Do I look like a robot?

I can't be CM now。

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

Can anyone please tell me why my code for problem $$$D$$$ got WA on test 6 ?

my idea was to take the highest value between $$$a.back() - a.front()$$$ and $$$b.back() - b.front()$$$ if I can

and if this will result in reducing the number of ways to take the last triangles, I will output the answer and then remove the highest value and take the smallest one

what is wrong with this idea ?

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

    Consider that all of a's have huge space between them and b's are close. You will always pick 2 a's and 1 b until there are few a's (say 1 or 2 depending on how you coded the last cases). Then you will be forced to pick 1 a for the last cases and you will be left with a bunch of b's and no a's. You could have picked more b's in the start to keep the process going for longer. Your solution is correct with regards to optimizing the first cases, but from a point onwards your process will halt prematurely (your k_max will be less than the answer).

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

Can D be solved using ternary search? By the time I finished implementation the contest just got over. My code is passing samples, will have to wait for system tests to finish to see if it works.

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

I am fortunately that I didn't participate in this contest, if I do, i will become a Specialist.

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

1000th round and I messed it all up

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

So what's the meaning of F1 :thinking:

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

????

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

It could have been a better idea to be extra careful when organizing a special round like this one. It's not just numbers; "the 1000th round" feels like a very inspiring round to attend. This was the first round I attended in 7 months. My rustiness alone doesn't explain my terrible performance. Ending my break with a contest like this was not nice, and I think many of you have similar feelings.

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

Missed F1 by 1 second :(

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

I thick E is much easier than D.

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

Problem C really tricked me into doing a casework DP :(

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

    I first thought to apply DP on trees but figured out that greedy selection of nodes with maximum net degree would work !!

»
7 недель назад, # |
  Проголосовать: нравится +23 Проголосовать: не нравится
Help ! My submission on C wasn't passed to system testing
»
7 недель назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Is this round rated or not? I solved 1 problem and expected my rating to rise.

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

    Wait !! It takes some time to calculate the ratings. It is rated as of now.. You will get a rating soon !!

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

    As far as I know, there is some initial boost given to you for your first few rounds. See this.

    (Edit: Wait, I might have misinterpreted your comment as your rating being predicted to increase. Sorry if that is the case.)

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

I'made a mistake,I took the round way too casually.

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

a historical moment XD

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

Happy 1000 everyone!!

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

This was such a beautiful contest thanks !!

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

Do something to cheaters Youtube channel This youtube channel is providing solutions in live stream.

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

Can somebody give me some solid edge test cases for C problem, I don't know why my code is failing?

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

For C, is this a valid testcase? Answer should be 5 but one of my code gives 4 but it got accepted.

1

12

1 2

1 3

2 4

2 5

3 6

3 7

1 8

4 9

5 10

6 11

7 12

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

As a tester, this is indeed a historical round!

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

every time i see miku in comments i remember De3b0o

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

For problem D , after fixing $$$[l, r]$$$ for a fixed $$$k$$$ , how do we calculate the maximum value of $$$f(k) = \max_x g(x, k - x)$$$

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

what happened to sunjia?

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

Good

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

Is it just me or other people also thinks that the problems D, E and F1 have similar difficulty?

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

gg

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

A,B,C,D,E Video Solutions here: https://www.youtube.com/watch?v=v4Dt37mBIBA

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

Contest is awesome

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

I received a message saying that my submission matches with another user, in this matter i would say that the problem was very simple and had a straight answer, also since the variables were already mentioned in the question, we i didn't bother to change them. Also our time stamps of submission are very different. Please look into the matter.

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

As a tester, I have a proof that upvoting this comment will lead to positive delta. But the proof is too long to fit the margin.

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

as a tester,