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

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

Hello Codeforces!

I am glad to invite you to Codeforces Round 958 (Div. 2) which will start on Jul/15/2024 17:35 (Moscow time).

The contest will last for 2 hours with 6 tasks for you to solve. The contest will only be rated for those with a rating not higher than 2099, but high-rated competitive programmers are also more than welcome to participate out of competition.

The score distribution is: 500-1000-1000-2000-2500-3500

The contest will be impossible without the help from:

Good luck and have fun!

Update: editorial

Update: video editorial

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

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

wtf a div2 with 3500 problem? Why not add more problems and extend it to a 1+2?

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

A huge difficulty gap b/w C and D O_o!!

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

Unrated only for Legendary Grandmasters:-O

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

Wow feecIe6418 round! I missed you a lot!

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

speedforces!!

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

As I tester, I enjoyed the problems and encourage you to participate!

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

Goal: ABC in 30 mins, D before the 2 hour mark.

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

as a tester

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

Hopefully, the problem statement will be short and precise just like the announcement!

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

Goal solving ABC by the end of contest

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

As a tester, I am sure about tolbi is Nutella.

Also participate this round, problems are very cool.

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

why isn't this on home page?

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

"I am glad to invite you to Codeforces Round (Div. 2)" . you haven't said div2's id XD

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

A + B + C = E.

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

Great! I hope to reach +1750 in this round

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

hoping to solve 3 problems

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

1000?2000!

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

i have a strong conviction that this will going to be BIG speedforce for div3, fast solve ABC or ff.

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

OH! gyh I miss you a lot

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

As a participant ,i love the testers.

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

Let's see if I can avoid bricking this contest.

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

hopefully i reach 1434 rating this round

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

I think this round is going to be mathforces

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

This is my first contest. Thanks to CodeForces.com. I will do my best for this contest.

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

You had Entire Saturday and Sunday. But no, we will host the round on Monday. wow.

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

i hope to be expert today

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

enjoy in contest.

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

C is 1000 points. Speedforces incoming.

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

Hope I can be Expert in this contest!!!

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

GLHF

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

You meant to say that the contest would be impossible without the help from..., right?

Now it seems that we won't be able to solve any tasks unless we contact the creators :D

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

Mistake

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

And I keep falling! Am I getting more stupid or are CF contests getting more difficult?

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

The first one to pass problem E~

Also my first time to be the first to pass a problem on Codeforces! Happy~

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

Question D Looked so innocent to me, I thought it was only about Bipartiteness of the graph, Later I understood it's way more complex than that.

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

I can't believe that more than 12k participants solved problem A all by themselves.

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

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

Ther is a problem in a persian contest that is really similar to problem D.

Basically this problem there is no $$$a_i$$$ but the problem gives you a tree and asks you to set a positive integer value to all vertices in such a way that no to connected vertices have the same value and the sum of the values is minimum.

It is basically problem D but with $$$a_i = 1$$$ for all $$$i$$$.

It is not so far from problem D and i know two solutions for the problem in persian contest that can be changed to AC solutions for D by changing a few lines.

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

man, that was TOUGH :)

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

don't know why but I smell brute force in D.

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

probably the hardest div2 A I have ever seen

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

Thanks for the contest. especially for task D. the first idea that comes to mind — two days is enough (painting tree in two colours) passes the sample but is wrong :(

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

A >>> (B + C)

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

OMFG got accepted E in the last 2 minutes. My first E in div2 for nearly 2 years.

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

Damn, I got too many penalties on B for concatenating to a new string instead of just using normal variables.

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

A is harder than C, Nice.

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

ok i swear if the submission for D that im about to send ACs im gonna be so pissed (i was 3s late)

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

so hard :( but nice problem. I think E is pretty good.

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

resolved

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

can anyone tell Whats the logic behind problem -d

my logic — just doing dfs and marking all alternate nodes in a tree then the answer will sum of all nodes + min(sum of marked node, sum of unmarked nodes)

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

is there a direct bitwise formula for C I solved it but nevertheless found the bit manipulation I did quite complicated.

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

The number of submissions for problem C is beyond my expectations and nowadays looking at no of submission always demotivates me(i feel how this fast submission crossed 1000)

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

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

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

Not able to solve B after lot of attempts can't find the case where the code goes wrong.

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

    let me help you bro

    think of this test case 00000011100000000

    here in this test case in first move you will combine all prefix 0 with 1 in the second move combine all suffix 0 and in the third move apply operation on the remaining array so answer will be 1

    the corrrect approach is to combine all consecutive 0 into one '0' so that no one gets into waste and then checking is count of 1 is greater than 0 or not

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

Can someone explain in short the idea for C ?

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

    For each number, just unset one set bit starting from msb to lsb

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

    Lets build $$$a$$$ from the end.

    $$$a_k$$$ cant be larger than $$$n$$$ because that would mean $$$a_{k-1} | a_k \gt n$$$.

    It turns out that $$$n$$$ can always be put as $$$a_k$$$. (dont know how to prove that sometimes $$$a_k$$$ smaller than $$$n$$$ can result in bigger $$$k$$$)

    Now for every next number $$$a_i$$$ we construct (actually previous in $$$a$$$) we will try to decrease it as little as possible compared to $$$a_{i+1}$$$ while the $$$a_i | a_{i+1}$$$ is equal to $$$n$$$.

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

in C, is the len of the longest sequence equal to => (no.of set bits in n)+1, except for the cases where the no.of set bits is less than equal to 2..

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

Probably the best contest I ever gave on Codeforces. Got wrong answer on A then understood my mistake and then solved C with 1 minute 29 seconds remaining!!!!! Very happy rn.

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

Hello,

These problems were trash.

Yours faithfully.

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

solved a, b in 14 mins but could not solve C. Can some one throw some light. Am i missing somethng obvs?

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

started 1hr late solved B and C only stuck at a cause A, doubt was whether there exist an easy sol in constant time but would have implement in log(n) complexity rather if no time pressure. Will try best to wakeup early next time

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

    For problem A: imagine you have a block of length $$$N$$$, and you can cut it at $$$N-1$$$ different positions. During one move you can make $$$K-1$$$ cuts (this splits a piece into $$$K$$$ pieces). You want to make cuts at all $$$N-1$$$ positions, since this will result in $$$N$$$ pieces of size 1. This means the required moves will be $$$\lceil \frac{N-1}{K-1} \rceil$$$.

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

Hello everyone, this contest is good. I solved 2 questions in 13 minutes, but I'm stuck on the 3rd question. Even though the 3rd question is challenging. There was a live stream running on YouTube called "Sharabi Lal". If someone official is watching, please block this. However, even if they do, they might create another channel. What can we do? Maybe you should increase the quality of the plagiarism checker or something similar. If someone is found cheating, you could mark their ID differently or publish the name of the cheater after the contest. Or maybe not. I'm just frustrated.

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

Is D dp, trees or both?

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

    Basically Dp...try to traverse from one leaf node...

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

    DP, the move in which you kill a subtree's root must be different from the time in which you kill its children. You can have $$$dp[i][j]$$$ = the minimum cost to kill the subtree rooted at $$$i$$$, if you kill the root during move $$$j$$$. For $$$dp[i][j]$$$, we take $$$A[i]*j$$$ damage from the root, and then we then have to pick $$$j' \ne j$$$ for all the child subtrees.

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

Rainboy round , I want to know which country he belongs to.

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

How to not choke in questions like A :<<

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

This contest let me become purple and >1900 for the first time, i love the problems!!!(O.o)

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

What's the idea behind problem E?

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

Why was my D-question never system tested?

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

Hi everyony. It's written in the description that "The contest will only be rated for those with a rating not higher than 2099". But my rating hasn't changed yet. Should I just wait for some time or there is some kind of mistake?

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

I saw A tutorial it's really easy I think I couldn't solve it because I restricted my self that in each operation n should be divided by number <= k

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

I got WA in 270731172 during the contest. I submited the same code after contest and it accepted. 270754276. Why ?

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

Problem D got me good. Oh well, We will get 'em next time.

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

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

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

Hello

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

Finally became a CM, thanks for the contest!

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

Dear Codeforces Team,

I recently received a notification regarding a solution coincidence for problem 1988C with solutions Rudransh58/270724137 and 2022ucp1403/270738520. I would like to address this concern and provide some context.

First and foremost, I want to assure you that I have always adhered to the rules and guidelines of Codeforces and have achieved my rating through my own efforts. I have not engaged in any activity that would violate the rules, including sharing or copying code.

I am unaware of how this coincidence occurred, but I can provide the following points to support my position:

Independent Work: My solution was developed independently based on my own understanding and problem-solving approach. Code Sharing: I have never used public platforms like ideone.com with default settings or any other medium to share my code. I take the confidentiality of my work seriously. Common Sources: It is possible that the coincidence is due to the use of common techniques or standard algorithms widely known in competitive programming. If there are any common sources that could have led to this similarity, I am unaware of them. I am committed to maintaining the integrity of the competitive programming community and am willing to cooperate fully to resolve this issue. If further details or explanations are required, I am ready to provide them.

Thank you for your attention to this matter.

Best regards, Rudransh58

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

    Your coding style completely changed between problems A/B and problem C. Even the indentation and formatting are different.

    Problem A and Problem B, which use <bits/stdc++.h>, include macros for ll and mod, and solve everything in the main function.

    Problem C, which uses different includes, no macros, uses a solve() helper function for testcases, and has different spacing/formatting.

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

      It's because i've used diffrent moduled code which i've pre written on my vs code, so i did use diffrent includes, no macros, used a solve() function that's on my vscode!!, and changing the code writing style does'nt mean i've copied the code.

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

Hello. I have a question: I got 1700 this round and I did see that my rating increased about 261 or so, but after 2,3 days, this became unrated!! Is this a bug? Could somebody please tell me why this would happen, please?