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

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

We invite you to participate in CodeChef’s Starters 89, this Wednesday, 10th May, rated till $$$5$$$-stars coders (i.e. for users with rating $$$< 2200$$$).

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

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

Joining us on the problem-setting panel are:

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.

We’re hiring! If you’d like to work at CodeChef as a Learning Content Creator, click here.

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!

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

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

I have noticed on recent Starters contests some are rated for 5 stars, some for 6 stars, some for all. Is there any pattern/way to check this for upcoming contests?

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

    Actually, there is no specific pattern. The number of stars till which the contest should be rated is decided based on the setting panel's opinion and the testers' feedback.

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

How to solve EVIL_INF ? I tried to do some DSU stuff but couldn't get it to AC

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

    DP, first just find for every Y what they will take if their X is missing. Then just go over Y in decreasing order and take dp[ current ] = dp[ takes_from ] + 1 ; answer is max over dp — 1, since the last person is not evil, because he is left with nothing to take.

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

    It's simple greedy, sort all people by B[i](their arrival time) ,now iterate from last to first, suppose we are at person x and demon took his takeout then dp[x]=1+dp[id],where id is the minimum a[i] person x can steal. dp[i]-answer when i takeout is taken. To calculate id, we can use a priority queue.

    Here's my implementation- Code

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

Today i helped a demon.

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

when will ratings be updated?