IceKnight1093's blog

By IceKnight1093, 6 months ago, In English

We invite you to participate in CodeChef’s Starters 141, this Wednesday, 3rd July, rated till 5-Stars (ie. for users with rating < 2200).

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

Joining us on the problem setting panel are:

One problem has a subtask.

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 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!

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

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

Greater

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

As a tester, good luck to all participants, and I would recommend the participants to read all the problems.

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

How many problems in each division?

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

    7 in Div.4, 6 each in Div.3 and Div.2, 5 in Div.1

    One problem has a subtask, and is present in all 4 divisions.

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

Is Possible Contender a repeated problem?

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

    If yes then link the original problem

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

    1975C - Массив Чамо и Мокки
    This problem might be the reason why you feel so.
    Btw it took me quite a non trivial amount of time to get it right, despite knowing codeforces problem.

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

      Yes, that was the problem I was talking about.
      Thank you

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

      I solved the cf problem in like 15 minutes in the contest but couldn't get a solution to this problem during the whole duration of this contest. Except for the median I am not finding anything similar but yes this problem may be the inspiration I don't know.

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

My DP attempt at Perfect Prefixes: We note the initial score of the permutation, then try to swap elements and see their impact on the score. If we keep track of the MEX, we can tell whether a swap will increase or decrease the score by 1. Use DP to find the subarray of swaps with the highest sum. The mex logic was a little messy, but it worked.

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

Nice div2 C

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

Could someone recommend more problems like Central Cutting where you need to tally the values of a certain function over partially filled combinatorial objects (a permutation of length $$$n$$$, an array of length $$$n$$$ with elements from $$$1$$$ to $$$m$$$, maybe even a node- or edge-labeled tree with some labels missing)?