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

Автор DeadlyCritic, история, 6 лет назад, По-английски
$$$~-\text{In the name of God}~-$$$

Hi community,

I'm glad to invite you to my first contest, Codeforces Round 652 (Div. 2) which will be held at 23.06.2020 17:05 (Московское время) ($$$\text{notice the unusual time}$$$). The problems are mainly prepared and invented by me. The round is rated for participants with rating strictly less than $$$2100$$$, others are able to take part in the round out of competition. You will be given $$$2$$$ $$$\text{hours}$$$ to solve $$$6$$$ $$$\text{problems}$$$.

Firstly I'd like to thank adedalic for coordinating and reviewing the round, as well as helping with many different things.

I'd like to thank antontrygubO_o, physics0523, McDic, Ashishgup, dannyboy20031204, Kuzey, SinaSahabi, FieryPhoenix, lov.ish, ITDOI, AM_I_Learning, awoo, lynmisakura, JustasLe and ArimeZ for testing the round and giving valuable feedback.

Also I'd like to thank coauthors, amiralisalimi, AS.82 and davooddkareshki for helping me with inventing and choosing the problems.

Finally, thanks to MikeMirzayanov for very nice and convenient Codeforces and Polygon platforms.

I wish you all will find the problems interesting, thank you for participating, and good luck!

$$$\text{Scoring distribution : } \; 500 ~- 1000 ~- 1500 ~- 2000 ~- 2500 ~- 3000$$$

$$$\textbf{UPD}$$$ : Editorial is out

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

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

An Iranian round after a long time .....
Thanks for your hard work.

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

I am an atheist.Can i participate in this round?

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

Ashishgup held three rounds and now he is a tester in this one. That's a lot of work.

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

Deleted

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

I am a beginner.Can any one give some advice about this contest.Please ,It will be helpful for me.

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

    A — dificulty will be less than 1200 & B -will less than 1400 most of the time..practise those problem from problemset with those difficulties . I think it will help

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

    If it your first contest, don't worry if you don't solve much. Even as a very experienced programmer (40 years as a professional software engineer) it took me a few tries to get the hang of programming contests.

    Unless you are in the last couple of minutes of a contest, always try running the provided examples locally (or using "custom test") before you submit. On Codeforces you lose points for failed submissions.

    If you know more than one programming language use whichever you find easiest to write. So long as you find a reasonable algorithm, performance is unlikely to be a major issue until at least the 4th of 5th problem. I use Python for my submissions, and (using PyPy3 to run it) I have yet to find a problem that it is too slow for.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится
    • A-difficulty between 800 to 1200 with tags including 'brute force', 'implementation', 'math', 'sorting' (rarely), etc;
    • B-difficulty between 1200 to 1500 with tags including 'binary search', 'data structure', 'divide and conquer', 'strings', 'combinatorics', etc;
    • C-difficulty between 1400 to 1800 with tags including 'dp', 'dfs', 'trees', 'graphs', 'bitmasking', etc;

    Moreover, after the contest is over you can always read the editorials or can refer others solutions. You can practice for any difficulty or any tag from the problemset by using filter provided on the right side.

    "Happy Coding :)".

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

As a Tester I feel that the problem set is more diverse and good for everyone , there is something for everyone to solve and ya the round is good for those who just want to start with competitive coding!. Hope everyone to give this nice round!

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

Any specific reason for the unusual time?

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

Very Excited for your first contest!!

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

I think that's the beauty of codeforces. We get the best of problems from different countries which covers lot of diverse types of problems and helps us improve in different areas with each contest. We got 2-3 good indian rounds, this one is an Iranian round and 654 Div2 will be a Japanese round:).

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

    First time when i came across this platform, I found it very weird because it's UI is not very attractive but when i started participating in contests I have just fallen in love with this platform and no other coding platform gives me this much of joy while solving questions. I think codeforces community is really great and helps a lot in growing as a competitive coder.

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

Now Wish you Bad luck for downvoting bruh!

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

Downvoted. There's no reason to drag in religion here on Codeforces -- keep it to yourself.

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

»
6 лет назад, скрыть # |
← Rev. 5  
Проголосовать: нравится +37 Проголосовать: не нравится

Ok, I'm deleting this meme.

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

In the name of God... Me an atheist....

It is going to be an interesting round.

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

Great

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -41 Проголосовать: не нравится
  • Will this round be rated?
  • How many people will be participating?
  • Is there going to be any math involved?
  • How large are the statements?
»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Looking forward to the contest!

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

Lol Ashishgup everywhere orz...

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

[Deleted]

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

I wish there aren't any interactive problems because i'm done with those.

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

Hey guys..did you notice vovuh is back with his div-3 round...? so excited!!

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

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

Is it just me or do others feel as well that the quality of comments section is going down? All I see are a lot of shitty memes, "Is it rated" and relentless pursuit from a lot of people to just comment on something for the sake of it. It's extremely uncomfortable as quality discussion on problems gets suppressed due to a lot of this unnecessary crap

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

The last time there was a single setter vs an army of testers,Ehab happened! Hope God saves this round!

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

Please mention about unusual start time in announcement. I noticed it after reading it in comment section.

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

BTW I did my best to make the statements as short and clear as they should be, stories are written in another font so you can skip them, but don't forget to read them when waiting for system test. I tried to lessen number of tests so we should not see long queues.

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

You welcome.

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

guys post god memes

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

thanks for your explanation!

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

All the best to you for your maiden contest!

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

Thank you for remembering me.

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

How much money does someone makes by problem setting in these contests ,

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

once again Ashishgup

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

Edit: Got it. thanks.

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

.

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

Well ,Is there anybody else other than me who can relate to this ?
WhatsApp-Image-2020-06-22-at-4.00.51-PM.jpg

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

Score distributions are out.

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

Till now I was thinking that the round will be held today. I was prepared for it. :(

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

OK, got it.

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

Hope your first contest will be more interesting.

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

I have a good feeling to this contest <3 ;)

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

How can i see my solved problem distribution on CF ? (difficulty-wise) Thanks in advance........

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

 DeadlyCritic Bro what an inspiring curve of rating you have . As a beginner these things motivate me a lot . Hoping to have more rounds from you!!

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

UNUSUAL TIME

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

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

Me: Yes, I can do it. I can solve all the problems. I will be rank 1. But after solving at max two problems, enough I am done with it. I am going to sleep.

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

I hope to be a pupil in today's contest anyway.

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

CodeForces and all the problem setters, coordinators, testers are doing an amazing job to arrange such good contests on such regular basis. Hats Off to their efforts!

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

Why people nowadays are discussing such irrelevant topics in the comment sections?You guys have other social sites to do these stuffs.CF is not the right place to share memes & have a discussion about if the author can add "In The Name of God" in his post or not.

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

Humble request to authors: Don't make it Propaganda forces Thank you!

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

Hopefully, your entry as a contest writer will be interesting and hoping for an interesting contest as you said :).

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

submissions in queue for a long time. will contest delay?

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

This time is very unusual as per India. As many of the students stay in the hostel, and it coincides with dinner timings of the mess: 1930-2130 IST. So either we have to skip dinner or lag in the contest.

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

GLHF EVERYONE!

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

Man I keep getting Wa on A again I solved 3 problems and my rating will stay the same :(

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

How to solve D What was D.

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

I lost too much time convincing myself that the proof for problem B I had in my mind was correct :D Anyway, I really enjoyed the problems. It was a good contest.

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

"For each test case, print a single integer — the maximum number of yellow vertices Lee can make modulo 10^9+7." — having the maximum modulo instead of the maximum actual answer modulo 10^9+7 was very nasty. Should have been explained better, as usually the problems require the actual maximum modulo something.

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

Summary of the contest:

Wrong answer on pretest 2

Easy D

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

How to solve D??

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

Please don't write −In the name of God − from next time :(

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

How to solve problem E? I tried to model the problem using graph network- food type as node and each friend as edge. How to proceed?

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

any hint for problem D !?

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

How to solve E? It is a variation of Cow and Snacks. How to handle multiplicity of plates?

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

Nice and hard problem E, thank you author

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

I did not like this one. For me D and E where hard to understand, I restarted two or three times just to notice after some times that I did get the question wrong.

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

You tried to make a hard D ? You definitely made a deceptive D. Loved solving it.

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

I don't know why my D solution is correct.

    for (int i = 4; i <= 2000000; i++)
        f[i][0] = max(f[i - 1][0], f[i - 1][1]) + max(f[i - 2][0], f[i - 2][1]) * 2,
        f[i][0] %= P,
        f[i][1] = 4 + f[i - 1][0] + 2 * f[i - 2][0],
        f[i][1] %= P;
»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Very descriptive questions. And I must say, the names were quite good too.

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

Why problem D I can mod then max to pp the testcases?

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

Can someone please help me out with B?

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

'A' problem ruined my day,thx

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

'C' --> peace of shit

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

Cool problem D, even though my finger is fat and I typed %2, instead of %3. Just realized :D

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

How to solve D?

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

When First Problem is A Geometry Problem, its just a mood spoiler ! :/

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

Why the problem suffix has to be "LEE"?

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

Interesting problems. Especially E, though I could not solve it. How to solve E?

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

Looks like I am the only one who thought that the sum of n over all test cases can exceed 10^7 in problem D :(.

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

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

Nice Contest! Liked the problems, hoping for more contests from you in future :)

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

https://codeforces.me/contest/1369/submission/84784993 really?? What about making strong systests?

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

Problem A, why call it OX-axis and OY-axis ? What does O stand for ?

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

Plenty of examples. +1

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

Story in problem E was amusing

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

.

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

Here as the virtual Moss for Codeforces, busting cheaters and getting them out of their bills. I hereby present you another team Admiral_Wolf and smiling_addu

B: 84762137 and 84789248 , If you swap the if-else part, it's easy to say the solutions are the same.

C: 84771585 and 84786359 , Only the vectors in both the solutions are different. Also c <= k and the strange way c-k <= 0 are again the same, they did to save them from the moss.

D: 84791187 and 84796767 , Again the solutions are the same if you look at the parts below it's evident something is strange

dp[i] += (dp[i - 1] + dp[i - 2] + dp[i - 2]) % MOD;

dp[i] = (dp[i] + dp[i-1] + 2*dp[i-2])%mod;

To save from Moss, 2*dp[i-2] == the strange way dp[i-2] + dp[i-2]

DeadlyCritic MikeMirzayanov adedalic

UPD: The solutions are skipped

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

Not able to view the editorial. Its showing- "You are not allowed to view the requested page".

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

Recently, lots of cheating is happening in codeforces. In most of the contests solution of problems A, B, C and sometimes D (Div. 2) are being made available in ideone, which is not only increasing fake ratings, many genuine ratings are also being affected because of increasing ranks.

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

    It's very disappointing and the ones who are suffering due to this are mainly noobs, after doing 3 problems many are getting huge rating drops. It is even leading to frustration and loss of confidence.

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

    Really glad to see someone speak on this. In almost every contest, someone posts the solution on ideone(knowingly) and there are so many talented coders out there copying the same and getting their ratings boosted. Also some people are getting huge rating drops due to this. It's also ruining the fun of the contests. Are we helpless and can't do anything against this other than plagiarism checks.

    Also, I am ready to receive all the downvotes from the cheaters.

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

That was quite the LEE-round

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

I submitted the C question and passed the pretest but now it shows wrong answer. My logic matches the editorial and i am not able to find the bug in my code. Please help. https://codeforces.me/contest/1369/submission/84786141

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

Why does this doesn't work for D? I find for every level how many more(new) vertices with 3 children were added from previous level and then do dp[i]=dp[i]+dp[i-2]. Solution: https://codeforces.me/contest/1369/submission/84822790

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

Can anyone tell me how the answer for the case n = 5 is 12 in problem D? Any image would be highly appreciated

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

I accidentally used Ideone on public settings and someone copied and submitted the same code int this contest and now i received a system email regarding the penalty for this. Can someone guide me as to what should i do. This is the link of my submissions https://ideone.com/qDpu3b

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

Why I am getting MLE on this submisssion https://codeforces.me/contest/1369/submission/84815861 for problem C? tnx. My biggest variables are two arrays of integers of size 200000 each which makes it in total less than 2 MB.

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

Here's my screencast of getting 7th place. I discuss the solutions to all problems at the end.

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

Enjoyed the contest and neat editorials. Thank you DeadlyCritic and team !

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

Мой русский разбор на E (может кому-то будет интересно) https://telegra.ph/Razbor-zadachi-E652-Div2-06-23

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

A fact :

Problems' names are connected to difficulties, also they show you the gaps with high accuracy.

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

My first round))

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

My first round

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

Мой первый раунд)