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

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

你好,Codeforces!

We are delighted to invite you to participate in Codeforces Round 1105 (Div. 1) or Codeforces Round 1105 (Div. 2), both of which will be held on Jun/27/2026 17:35 (Moscow time).

For both division 1 and division 2, you will be given $$$2.5$$$ hours to solve $$$6$$$ problems in each division.

The problems were authored and prepared by Gold14526, Milkcat2009 and wangmarui.

We would really like to thank the following people for making this round possible:

Scoring Distribution:

DivisionABCDEF
Div. 250012502000225027503500
Div. 175010001500200027503500

Good Luck & Have Fun!

UPD: Editorial has been posted

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

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

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

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

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

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

After 5 years, I’m back in Div. 2 :///

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

The first Div.1 competition I participated in, looking forward to it!

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

As a tester, there is at least one catgirl among the authors :)

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

Div. 2 contest is back yay!

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

    Where have they gone? Makes sense for Div4, Global and most importantly CodeTON rounds; but we have Div2 rounds consistently.

    Anyways now after you have pushed me to nostalgia, why we don't have CodeTON rounds anymore?

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

As a tester, I think the problems are quite interesting. And I hope everyone can enjoy this contest!

There is at least one catgirl among the authors :)

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

Long time no see...individual div.1 and div.2's. Hoping it to be a great contest! All the best.

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

It might be a problem on my end but whenever I try to register I get an error.

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

Aren't there any interactive or communication problems? In fact they're interesting.

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

As a tester, I lost the right to gain positive or negative rating delta in this contest.

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

As a tester, this contest contains a non-zero number of great problems, so you should participate.

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

As a participant I hope to hit GM

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

As a t

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

Good luck to all participants!

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

As a participant, I hope to reach CM

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

Scoring distribution: TDB

Shouldn't it be TBD

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

On the verge of falling into 1200s again

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

isn't this round 1105?

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

Wasn't Order Capital one round 1104?

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

I'm scared of 2000 points for task C

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

Does 2000 C mean that C will be as hard as a normal Div2 D? I'm scared...

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

Hope to solve 3 problems and get higher rating! don't want to become CM :(

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

As my first div1 I hope to become expert and enjoy the problems

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

Points for B(1250) and C(2000) look tuff (  ̄- ̄)

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

2000 points for C? this is scaring me lol.

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

1250 points for B, does that mean that is going to be harder?

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

B 1250... C 2000...! What will happen in the Division 2?

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

wangmarui?????!!!!!

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

i am not able to register for this contest(div 2) , whenever i am clicking the register button it just shows some internal server error. can anyone help me out?

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

good luck to all

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

Again , No Interactive Problem :(

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

2000 rating points for problem C (o_O)

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

guys someone please tell me, is it a typo, or the div 2 problem C is actually gonna be worth 2000? can someone tell?

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

CM isn't allowed to register for div2?

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

As a tester, orz Gold14526

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

Can't wait to get humbled by problem C.

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

As a tester, this round is nice.

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

.

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

Div 2 C is 2000 points!

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

нееееет китайский див.

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

I will be giving this contest after a very long time today.. let's see If I still have what it takes to solve 2-3 problems.. targeting 3... :)

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

i will consider this my first contest since coming back to cf after months. this time imma try to make this thing work

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

I hope everyone who usually relies on problem C or D to save their contest can solve it, my friend.

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

why both on same day same time, any logic behind it ??

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

MikeMirzayanov

Hello, I am writing this post through my new account to appeal for my disabled account abcd1145.

I understand that my account was disabled, possibly due to my recent performance where I solved some problems very fast. I want to sincerely apologize if my actions caused any concern. I can assure you that I completed the work independently, but I fully understand how it might have looked unusual.

In fact,I have solved several 2400-rated problems recently.Problems happened to be straightforward for me.

I humbly request you to please reconsider my case and give me one last chance to restore my account.

This account won't be used for any contest.

Thank you for your time.

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

Mathforces isn't fun :(

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

This contest is seriously humbling me, can't wait for the editorials lol

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

Stating "hack is disabled for this problem" indicates that uphack is also prohibited.

I think the rule of 1A~2B being unhackable only applies in contest.

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

This contest is TERRIBLE.

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

How does one even solve Div2B?????

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

    I hope I can explain it.

    Consider a 2 x 2 matrix.

    a b
    c d
    

    according to question a ^ b ^ c ^ d = 0

    now d ^ d = 0; hence, a ^ b ^ c = d

    So if we know the value of a, b, c, we know the value of d

    Now, let's consider a 3 x 3 matrix.

    a b c
    d e f
    g h i
    

    According to the formula above, e is forced, so now check b ^ c ^ e ^ f = 0. If e is forced, then f is forced too,

    Similarly, h is forced, and in e ^ f ^ h ^ i = 0. e, f, and h are forced; hence, i is forced.

    This idea generalizes. For an r × c window, once the first r−1 rows and the first c−1 columns are fixed, every remaining cell is forced by the XOR constraints.

    Therefore, the only free cells are those in the first r−1 rows and the first c−1 columns.

    and = m(r−1) + n(c−1) − (r−1)(c−1)

    now only 1 and 0 is possible, 2 possible cases, so do

    2 ^ ans over the mod given

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

I think the statement for Div1 B is very poorly written. At first glance, I thought we had to distribute gifts to ALL OF THEM, and the order of distribution determines the answer.

After reading the example explanation, I realized that we choose a subset of people to receive a gift. Fine, but I still thought the order of distribution matters.

However, it turns out the author actually means all chosen people receive gifts at the same instant (how could it be? inappropriate background story) and makes it a really easy problem. What?

Also, I haven't done CP for a while, but is it acceptable these days to use 998244353 in problems that don't actually require it?

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

Nice trolling in div2C

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

Just guessed that the answer for $$$B$$$ has to be $$$2^x$$$, and found $$$x$$$ by luck lmao. Thanks for giving a lot of sample tests.

Good problems, but cheaters done ruined it as always.

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

How to solve div1D:

Given $$$10^6$$$ constraints, it is quite likely that the answer should be $$$\binom{n}{m} \sum_{i=m}^n \binom{n-m}{i-m} \cdot \text{something}$$$. Just write brute force and guess :)

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

Is it just me or this contest is insanely difficult, especially because of the confusing problem statements that you'd only understand if you work with them and the examples on paper.

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

why problems are so hard T_T

P.s problems are really interesting tho

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

Problem div1A is very cool <3

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

Nice problemset

I overthinked B and wasted a lot of time :(

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

mathforces

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

Div2B and Div2C are cool problems. Though admittedly I kinda hate 2C cuz I needed to use too many braincells and so none was left to do D haha

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

Bitforces.

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

I want to know what's the reason behind div2B for that name?

Do authors check if the problem is solvable by ChatGPT ?

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

Div2C was pure evil. After struggling with the math in B, seeing mod get mentioned again in C made me look for scenarios not resulting in instant win or loss (to no avail obviously) basically ONLY due to expecting a large answer, and wasted way too much time for absolutely no reason. D was relatively straight-forward, but couldn't finish coding it up in time due to this. Great trolling.

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

How can someone pass Div.2 F in 16 minutes

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

Does anybody know why I'm not a trusted participant??

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

​last Order Capital Round 2 (Codeforces Round 1104, Div. 1 + Div. 2) i did A+B+C

​this Codeforces Round 1105 (Div. 2) i did...NOTHING !

what went wrong T_T

please help.

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

Does codeforces have a special feature to report cheaters? https://codeforces.me/contest/2240/submission/380349840

I mean like:

cin >> c[i] >> x[i];
c[i] = tolower(c[i]); // Ensure case insensitivity

And at which moment auto checking is performed?

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

I think problem A in div2 should always be very simple so almost everyone who reads it solves it unlike in todays contest

29k people registered but there is only 8k in official standings where as the previous 2 div2s had 30k registered/11k standings and 29k registered/ 11k standings respectively

i think the 3k difference is from people who saw the first question and decided not to join the contest skewing the results

someone who placed 1k out of 8k in todays contest should have been placed 1k out of 11k which is a better placement

or alternatively just add anyone who registered for the contest and read a question from the contest to the standings

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

    U are the smartest person in this comment section because:

    I was literally wondering why are rating changes negative even after getting better ranks

    I myself sometimes think to leave the contests after checking the first question

    These days it is really difficult to gain a positive delta, so many cheaters.

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

why was div2A and div2B in that order? i found B easier than A and solved it in 1/3 of the the time.

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

Tbh I was confused about how in (div1) AB it is said at the beginning that hacks are disabled, and then in problem C

  • It is not,
  • The solution is guaranteed to always exist,
  • There is no comment like "if you want to hack then please provide an input where such a permutation exists".

Like I understand that it's probably assumed that "It is guaranteed that the permutation exists [in our tests]" and any other input is invalid and hacks never allow invalid inputs. But I still feel that all this should've been expressed better.

(because of this I solved the problem D first, which was overall nicer to think about anyway)

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

    This decision was taken for reasons of good taste, given I think many other rounds have already interdicted hacks on the lower half of the problems (as to mitigate stupid cases where beginners may have a bad experience od getti g hacked, e.g. unordered map shenanigans). Indeed, this was an oversight, but I don't think an important one (clearly giving p 1 n times will not constitute a valid test).

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

In response for the solution 380357351, coinciding with 380360295:

I have a habit of storing my solutions for problems after contests (weather they be Leetcode or Codeforces), on github. I usually do it after the contest is over, but yesterday during the contest, I had to leave and carelessly comited my changes before the contest was over (at 9:38 pm IST), the other solution was posted around 9:44 pm IST. I am sorry for my actions, I will make sure to change the visibility of my github repo as well as to only save the solutions after the contest concludes. Here are the proofs:

https://drive.google.com/drive/folders/17A8BPgexfwhAXO5J-RMLm0uIrhcizEvs?usp=sharing

The drive link has both my commit time and the other user's submission time. Please forgive me for this time, I will not repeat my mistake.

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

thanks to this contest for promoting me to specialist XD

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

Hello MikeMirzayanov. My solution 2239B https://codeforces.me/contest/2239/submission/380328246 has similar structure such as some other solutions. I kindly ask you to reconsider your decision in light of the following factors. This problem 2009F (https://codeforces.me/blog/entry/133296) is conceptually similar to the following problems (cyclic array a+a and pref sum with it), but the final formula for working with indices is slightly different. Also the problem 1358D (https://codeforces.me/blog/entry/77869?utm_source=chatgpt.com) has a similar idea for processing a cyclic array. I corrected part with the initialization of the cyclic array, just in a more optimal form. Next, I went through the array and used the forumula that almost everyone has in their solution (2*d*a_i — sum(a_j)). I use github copilot (NOT FOR LOGIC) and it also suggested a line with pref sums.

This structure was used in many solutions from the competition ( https://codeforces.me/contest/2239/submission/380339445 https://codeforces.me/contest/2239/submission/380332546 [https://codeforces.me/contest/2239/submission/380335268 https://codeforces.me/contest/2239/submission/380332745 https://codeforces.me/contest/2239/submission/380329551 https://codeforces.me/contest/2239/submission/380329223) )

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

$$$E$$$ is a beautiful problem, coming up with the solution and proof was amazing (even though the editorial is shit and explains nothing).