YouKn0wWho's blog

By YouKn0wWho, 3 months ago, In English

Hi!

I am thrilled to invite you to participate in CodeChef’s October Cook-Off, this Sunday, October $$$18$$$, from 9:30 pm to 12:00 am IST.

Followings are the basic information:

  • Participants in each division will be given $$$6$$$ problems and $$$2.5$$$ hours to solve them.
  • All problems have been cooked by me.
  • Statements are very short unlike this announcement!
  • Problems will have strong samples.
  • There will be an interactive problem in this round, so, you should know how to deal with them.
  • I hope your internet connection is good as some of the problems will feature awesome animations that I have created using Manim! Yeah, it means the problems will have better explanations.
  • In my last contest, only $$$103$$$ div2 participants managed to solve div2C which is not good at all. So this time I have tried to maintain a more balanced difficulty distribution.
  • I would like to thank teja349 for his brilliant coordination of this round.
  • amnesiac_dusk tasted the problems(I hope they taste sweet!). I want to thank him particularly for helping me with the preparation of a few problems.
  • Psychik is in charge of the editorials.
  • Needless to say, Xellos did the statement improvements.
  • Video Editorialists: Chirayu, agarwal19,darshancool25, manijuana, divesh2201
  • Translators: Fedosik [Russian], Team VNOI [Vietnamese], solaimanope [Bengali], devils_code [Hindi], UoA_ZQC [Mandarin]

Prizes: The top $$$10$$$ Indian and top $$$10$$$ Global participants will receive CodeChef laddus, with which the winners can claim cool CodeChef goodies. Know more here.

The video editorials of the problems will be available on our YouTube channel as soon as the contest ends. Subscribe to get notifications about our new editorials.

Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here.

Good luck!

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

»
3 months ago, # |
  Vote: I like it -10 Vote: I do not like it

Clashing with CF Round 676

  • »
    »
    3 months ago, # ^ |
    Rev. 2   Vote: I like it -14 Vote: I do not like it

    The blog has been revised, and I look like a fool...

  • »
    »
    3 months ago, # ^ |
    Rev. 2   Vote: I like it +104 Vote: I do not like it

    Trust me I am the one who is more concerned about the clash. I have already discussed it with the CodeChef authority but here is the reason they stated explicitly: It's because we've been having these contests at the same slot for many years, and that predictability is pretty important for the platform. We then wrote to MikeMirzayanov explaining the situation and we are hoping that he'll get back with some good news. He usually takes time to reply to emails, so fingers crossed! That said, in the worst case, we would be having clashing contests

    • »
      »
      »
      3 months ago, # ^ |
      Rev. 2   Vote: I like it +97 Vote: I do not like it

      UPD: MikeMirzayanov has just replied to the email and the div2 contest has been rescheduled. We, as a community, are thanking the CF authority for showing such a great gesture. Hopefully, now you can participate in both contests and enjoy the beauty of them.

»
3 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

CF round is rescheduled, now we can participate in both CC and CF, Thank you Mike

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

finally we can participate in both contest. thank you so much MikeMirzayanov.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, # |
  Vote: I like it +12 Vote: I do not like it

some of the problems will feature awesome animations that I have created

This is probably the first time a problem statement will have animations to help with the explanation. What a time to be alive!

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
3 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Are problems sorted by expected difficulty?

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    codechef*

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    CodeChef_admin, I would still like to know if problems are sorted by difficulty at the very beginning. And is it same for Longs and Lunchtimes too?

    • »
      »
      »
      3 months ago, # ^ |
        Vote: I like it +6 Vote: I do not like it

      At CodeChef, problems are not supposed to be in sorted order. But in this contest, the problems were in sorted order because I like it in this way (Yes, INVERACTIVE was supposed to be easier than XOXO).

      I didn't see your comment before the round, so couldn't reply to your comment :'(

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

The video editorials to the problems are uploaded on Youtube

»
3 months ago, # |
  Vote: I like it +1 Vote: I do not like it

How to solve C? Great contest though :)

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    First, root the tree arbitrarily and calculate for each node its depth. Then, for each node, if its depth is even put a 1 on it. Else, put a 2. I dont have a rigurous proof of why this works, but it's easy to convince yourself once you see it.

  • »
    »
    3 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Just Color the Nodes with 1 if their parent is 2 other wise 1

  • »
    »
    3 months ago, # ^ |
      Vote: I like it +4 Vote: I do not like it

    $$$1-2$$$ coloring should work.

»
3 months ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

Thank you for participating! What is your favourite problem from the contest?

  • »
    »
    3 months ago, # ^ |
      Vote: I like it -18 Vote: I do not like it

    Sir , Editorial published ? or how to solve D ?

  • »
    »
    3 months ago, # ^ |
    Rev. 2   Vote: I like it +8 Vote: I do not like it

    I liked An Inveractive Problem the most. Though couldn't solve it even after a lot of submissions.

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I particularly enjoyed solving PATHSUMS, though I didn't fully solve it (mistake in implementation), but all three problems I managed to come up with ideas for seemed very well balanced and interesting. Great round overall, at least for me.

»
3 months ago, # |
Rev. 2   Vote: I like it +35 Vote: I do not like it

Screencast with commentary, 2nd place: https://youtu.be/bDoHVOZlqCE

Every problem was nice separately (I especially liked PATHSUMS, INVERACT, MORPH) but there was too much constructive stuff. Div1 was: construct tree, construct sequence, construct sequence, discover sequence, transform sequence, unsolvable problem. The third of these (XOXO) quickly becomes dp problem but everything else was constructive/adhoc, that's just too much.

I understand now why antontrygubO_o enjoyed your previous cook-off :D

  • »
    »
    3 months ago, # ^ |
      Vote: I like it +14 Vote: I do not like it

    I enjoyed this one too a lot, just was too bad. But amazing round!

»
3 months ago, # |
  Vote: I like it +6 Vote: I do not like it

How is the checker implemented for DIANE?

  • »
    »
    3 months ago, # ^ |
      Vote: I like it +12 Vote: I do not like it
    Checker
    • »
      »
      »
      3 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Thanks.

    • »
      »
      »
      3 months ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Can you describe the part of not calculating all gcds and minimum for every subarray naively and getting the accurate answer code seems wonderful but I just need to know the trick used here as it seems a wonderful thing to learn.

      • »
        »
        »
        »
        3 months ago, # ^ |
        Rev. 3   Vote: I like it +3 Vote: I do not like it
        Sum of all subarray minimums:
        Sum of all subarray gcds:
»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anyone find me a corner case for my solution for problem DIANE?

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    For D=2*10^5-1 the size of your sequence will be 10^5+3 which exceeds the given size limit.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Did not receive laddus yet :(