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

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

We invite you to participate in CodeChef’s September Lunchtime, this Friday , 23rd September, rated for all. It is based on EJOI 2022, the second day of which takes place earlier on the same day. All EJOI participants were asked to not discuss the problems before the end of this contest, and to not participate in this contest. If you somehow got to know some of the problems, please, don't participate.

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

Please note that the contest duration is unusual — 3.5 Hours.

Joining me on the problem setting panel are:

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!

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

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

Can U Just Postpone the Contest to Day After Tomorrow or to Sunday .So me and every other person can join the LunchTime Contest After So Many Days .Since CodeForces Div 2 822 is Clashing with it

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

Reminder: Contest starts in ~30 minutes.

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

How to solve RMVNUMBERS?

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

    If m >= 40 answer is 0. Otherwise you can calculate for each number in A, what mask of operations would leave it untouched. You can do dp on trie on those masks to calculate answer.

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

    If $$$M > 30$$$ the answer is $$$0$$$, otherwise we can brute-force on the game tree. See the code.

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

Got my best rank (34) in div2. feeling much better after rating loss in CF.. thanks for the contest :)

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

RMVNUMBERS is a mastapiece!

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

how to solve Increasing Addition?

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

    Consider what the operation does to the difference array.

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

      Lets say the Increasing Addition question was phrased as this: find Max ceil((a[i]-a[j])/(j-i))) among all pairs (i,j) where j>i.And there are q queries where you modify one element in each query.

      How would you approach this question?

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

Free 17pts was here(PERMSLCS Subtask3): ARC091-E

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

How to optimize LCAINTERACT from 66 points (k=10) to 100 points (k=9)?

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

How to solve UNFRIENDLY for the entire 100 points ? I could come up with only a dp solution for 23 points :( .

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

    Collapse substrings like "aaaaaaaa" into just "a" as you can't pick more than 1 from these anyway. Collapse substrings like "abababababababa" into just "aba", this won't affect the answer for a similar reason.

    Now you can show that it is never optimal to leave gaps longer than 2 in the subsequence. Now you can solve with a $$$O(n)$$$ DP.

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

I'm really impressed by the quality of codechef problems! I enjoyed Div 1 problems so much (even more than a typical Codeforces round!) Keep it up!