Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

We invite you to participate in CodeChef’s Starters 98, this Wednesday, 12th July, rated till 6-stars Coders (ie. for users with rating < 2500).

Time: 8:00 PM — 10:30 PM IST

Note that the duration is 2.5 hours. Read about the recent CodeChef changes here.

Joining us on the problem setting panel are:

Special Thanks to Anshiv sv1shan Singla and Hriday the_hyp0cr1t3 for their valuable feedback.

Written editorials will be available for all on discuss.codechef.com. Pro users can find the editorials directly on the problem pages after the contest.

The video editorials of the problems will be available for all users for 1 day as soon as the contest ends, after which they will be available only to Pro users.

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.

Hope to see you participating.
Good Luck!

UPD: Editorial is out.

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

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

orz

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

orz

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

orz

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

orz

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

cant wait for this contest

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

Thank you, like your regular contests.

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

Very nice contest, thank you again.

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

Didn't manage to solve div.2 D,E or F, but solved G by accident...

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

What's the intended solution for HOSTEL? Also should have been a 3 hour contest

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

Thanks all for your participation. Since this was my first contest your feedback would be valuable.

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

    Actually, SMQRY can be solved in $$$O(q\log n)$$$ with Link-Cut Tree.

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

      Amazing ! Thanks for pointing out. I am sorry for having no idea of that thing previously but will definitely try to explore about it now.

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

orz problemset, could've been a 7* contest too. Loved participating

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

How to solve Div2 B Problem Ball Distribution. I thought of binary search but not able to get AC :(

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

    You can divide the boxes into 2 types.
    1: which contains ball of all colors
    2: which has at least one color missing
    Assume initially we have all boxes of type 1.
    Now iterate on each colors, and think how can you minimize type 1 boxes.

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

Problems E and F are nice, D was annoying though (subarray sum)

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

In the problem BUILDT (https://www.codechef.com/START98A/problems/BUILDT ), it is not clear to me whether the towers are distinct or not. Additionally, all $$$a_i$$$ in the sample cases are $$$1$$$ or $$$0$$$. Therefore, I was wrong on almost all testcases except the ones with $$$\max a_i \leq 1$$$.

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

    u can consider each tower distinct based on node U and which rank is this tower in creation order T, for each node U now there are few thinks u have to take care of

    for creation order of tower i and tower j, if Ti < Tj, tower i should be placed before tower j

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

      Yes, I got three WAs because I didn't divide $$$a_i!$$$, I treat them as distinct towers. From the editorial, It seems that the only mistake I made was that I should divide $$$a_i!$$$ as towels are identical.

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

        they should be treated differently imo, but u can't create tower x + 1 before creates x towers

        thats why factorial doesn't make sense because u can't order them