Error_Yuan's blog

By Error_Yuan, history, 2 days ago, In English

Latest Update (Nov/4): Round 8 is coming soon.

Hello, Codeforces!

We are the KDOI Team. So far, we have authored so many CP contests, and we would like to make a list of them, to share these contests with you. Hopefully, we will bring more interesting problems and high-quality contests to the whole community!

「KDOI」Round 1 on Luogu

「KDOI」Round 2 on Luogu

「KDOI」Round 3 on Luogu

「KDOI」Round 4, [LGR-130] Luogu Monthly Contest on Luogu

「KDOI」Round 5, [MX-X1] MX Weekly Contest · Future 1 on MXOJ

「KDOI」Round 6 (Junior Division), [LGR-163] Luogu CSP-J 2023 Simulation on Luogu

「KDOI」Round 6 (Senior Division), [LGR-164] Luogu CSP-S 2023 Simulation on Luogu

「KDOI」Round 7 (Division 1), JRKSJ Round 9 on Luogu

「KDOI」Round 7 (Division 2), JRKSJ Round 9 on Luogu

「KDOI」Round 8, [TBA] on Codeforces. Guess which contest will it be! (Scheduled, not started yet)

「KDOI」Round 9, coming soon on Luogu. Guess when will it be held!

「KDOI」Round 10, [LGR-202] Luogu CSP-S 2024 Simulation on Luogu.

「KDOI」Round 11, [MX-S6] MX NOIP 2024 Simulation Round 2 on MXOJ. (Scheduled, not started yet)

Full text and comments »

  • Vote: I like it
  • +34
  • Vote: I do not like it

By Error_Yuan, history, 4 months ago, In English

UPD: (From MatrixGroup) To copy Markdown for discuss and articles, you can:

For discuss, use the code:

console.log(_feInstance.currentData.post.content); 

For articles, use:

console.log(JSON.parse(document.getElementById('lentille-context').innerText).data.article.content);

Luogu is a famous OJ (Online Judge) in China. Many users of Codeforces may know it, but don't know how to participate contests on Luogu. So I'm writing this blog to offer a brief tutorial.

I suppose that you do not have a Luogu account, so let's start from registering.

Step 1. Create An Account

Enter the site: link

Here is the English translation for this page.

You need to fill in:

  • username,
  • password (and confirm),
  • the secret code in the picture,
  • your email, (and click the "send verification code" button)
  • check your email, and enter the verification code.

Step 2. Login

If you do not login automatically, you need to login in your own.

Enter the site: link

If you logged in successfully, return to the home page https://www.luogu.com.cn/ and you will see:

in the top-right corner.

Step 3. Register for the Contest

The home page of Luogu looks like this:

After entering the contest page, you should click the register button.

Step 4. In contest

During the contest, you can view the problem list and solve problems. Most of Luogu contests do not offer English statements, so it is recommended to use chatGPT to translate it. You can click the "copy Markdown" button in the problem page.

If the authors do provide English statements, they are likely to post an annoucement on Codeforces.

Full text and comments »

  • Vote: I like it
  • +195
  • Vote: I do not like it

By Error_Yuan, history, 10 months ago, In English
  • Problem A~E: The problems themselves are good and typical A~E. Indeed I like problem D. The pretest for A is a bit weak, and it's not a big problem yet.

  • Problem F: The problem has an origin. :) See the link: click. The problem in contest is only a weakened version of the one in Luogu.

  • Problem G: It's said that our great coordinator had not proved the time complexity of the intended solution is correct :) If the authors did, please share it in the editorial. (although this problem is completely beyond my ability :) )

  • Problem H: Oh dear 74TrAkToR, could you please OEIS the sequence before you use the "several-integer-input" problem in rounds next time? Anyone who copied the first example and opened https://oeis.org/A286331 could quickly get the formula. And the problem itself is not so hard imo. Anyway, it should not be used in contest, especially for the last problem.

For me personally, I won't participate in 74TrAkToR rounds any more. The quality of his rounds is far below the average of CF Rounds. This great coordinator has coordinated the following rounds:

  • Codeforces Round 907 (Div. 2), which has a *2000 problem as Div2F :)
  • Codeforces Round 880 (Div. 1 & 2), which got 1400+ downvotes :)
  • Codeforces Round XXX, which has a NP-Hard problem as Div2C with intended solution in O(n log n) :)
  • ... (please take a look at Edit 6)

Dear Mike:

I advise making the round unrated.

You, of course, are shocked. You, of course, think that the round should be rated.

I was also an author of a previous official round. I completely understand the efforts the authors and coordinators paid behind a round. But it is not an excuse to evade responsibility. Serious problems appeared in today's round, in problem F&G&H, ALL OF LAST THREE problems in the contest. According to testers, this round even consists of an unproven problem. If this round remains rated, I guess it will be a decrease in programmers' trust in Codeforces. To avoid this, I kindly advise you to unrate this round and assign at least 2 coordinators for 74TrAkToR rounds in the future.

Please do not reply a "You're wrong, here's why" again!

Edit: I've saved this entry locally to avoid 74TrAkToR from deleting it. 74TrAkToR has done similar things on the announcement of his rounds before. Why can he delete these comments that criticize him?

Edit2: According to testers, the MCS of problem G is wrong, now it is not an unproven problem any more :)

Edit3: I've looked at 74's appeal. Unfortunately, he did not reply to anything that was mentioned in my entry. He just said, "it's all history". :)

Edit4: According to Appeal. 74TrAkToR,

We asked problem H from other authors and, unfortunately, it turned out to be known.

Is it pointing out that 74 knows that H is known, and still use it in the round?

Edit5: I'm sad to see that the rating has been updated. Parhaps I should mention MikeMirzayanov in this blog. Please take a look at this!

Edit6: I've listed all of 74 rounds in 2023. Please check it.

History

Full text and comments »

  • Vote: I like it
  • +1597
  • Vote: I do not like it

By Error_Yuan, 15 months ago, In English

Unfortunately, Problem C was coincidenced with a problem authored by me on Luogu (a famous Online Judge platform in China). Here is the link.

Even worse, this problem occured on a recent contest on Luogu (May 2023).

It seems that many people just copied the solution.

upd: Here is the English statement of the problem from Luogu.

You are given two integers $$$n$$$ and $$$k$$$.

Let us define the balance of a permutation $$$^\dagger$$$ $$$a$$$ of length $$$n$$$ by the following progress:

  • For all $$$1\le i\le n$$$, let $$$b_i=\gcd(a_i,a_{i+1})^\ddagger$$$, specifically, we consider $$$a_{n+1}=a_1$$$;
  • The balance of $$$a$$$ equals to the number of distinct intergers in the array $$$b$$$.

You have to find a permutation $$$p$$$ of length $$$n$$$, which balance is exactly $$$k$$$, or determine no such permutation exists.

$$$^\dagger$$$ A permutation of length $$$n$$$ is an array containing each integer from $$$1$$$ to $$$n$$$ exactly once. For example, $$$[2,3,1,5,4]$$$ is a permutation, but $$$[1,2,2]$$$ is not a permutation ($$$2$$$ appears twice in the array), and $$$[1,3,4]$$$ is also not a permutation ($$$n=3$$$ but there is $$$4$$$ in the array).

$$$^\ddagger$$$ $$$\gcd(x,y)$$$ denotes the greatest common divisor (GCD) of integers $$$x$$$ and $$$y$$$.

Full text and comments »

  • Vote: I like it
  • +103
  • Vote: I do not like it

By Error_Yuan, 18 months ago, In English

1869A - Make It Zero

Author: Error_Yuan

Hint 1
Hint 2
Solution
Implementation
Rate the problem

1869B - 2D Traveling

Author: programpiggy

Hint
Solution
Implementation
Rate the problem

1868A - Fill in the Matrix

Author: Error_Yuan

Hint 1
Hint 2
Solution
Implementation
Rate the problem

1868B1 - Candy Party (Easy Version)

Author: Error_Yuan

Hint 1
Hint 2
Hint 3
Solution
Implementation
Rate the problem

1868B2 - Candy Party (Hard Version)

Author: Error_Yuan
Please, read the tutorial for B1 first.

Hint 4
Hint 5
Hint 6
Solution
Implementation
Rate the problem

1868C - Travel Plan

Author: programpiggy

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Solution

$$$\mathcal O(\sum(m\log n+\log^3n))$$$ solution by programpiggy:

Implementation

$$$\mathcal O(\sum \log^3n)$$$ solution by sszcdjr:

Implementation

$$$\mathcal O(\sum \log^2n)$$$ solution by sszcdjr:

Implementation

$$$\mathcal O(\sum m\log n)$$$ solution by MatrixGroup:

Implementation
Rate the problem

1868D - Flower-like Pseudotree

Author: sszcdjr

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Solution
Implementation
Rate the problem

1868E - Min-Sum-Max

Author: duck_pear
Huge thanks to Kubic for the development of this problem!

Hint 1
Hint 2
Hint 3
Hint 4
Fun Fact
Solution
Implementation (by Artyom123)
Rate the problem

1868F - LIS?

Author: Error_Yuan

Hint 1
Hint 2
Hint 3
Solution
Implementation
Bonus
Hint for Bonus

Bonus solution by duck_pear:

Implementation
Rate the problem

Full text and comments »

  • Vote: I like it
  • +26
  • Vote: I do not like it

By Error_Yuan, history, 22 months ago, In English

See 1556E - Equilibrium.

Very similar problem — 1775E - The Human Equation is only a weakened version of 1556E - Equilibrium.

Will this round be unrated?

Full text and comments »

  • Vote: I like it
  • +51
  • Vote: I do not like it