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

Автор 244mhq, история, 2 года назад, По-английски

This time contest admin is newbie, so it will be a little bit easier than usual :)

We invite you to participate in CodeChef’s December Lunchtime, this Saturday, 25th December, rated for all.

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

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.

Hope to see you participating. Good Luck!

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

»
2 года назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

What about October Amazon pay vouchers

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

Contest to begin in less than 15 minutes.

»
2 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

I don't know why the problem "Optimal Sorting" turned out to be very hard for me to figure out. Spent around 2 hours on solving it!

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

Feels great to fully solve more that 1/2 problems for a change.
Thanks for the wonderful contest.
Adding an easier problem in div 1 was a nice touch. I hope Codechef continues it.

»
2 года назад, # |
  Проголосовать: нравится -31 Проголосовать: не нравится

Nice balanced contest for div-1. Thank you.

  • »
    »
    2 года назад, # ^ |
    Rev. 2   Проголосовать: нравится -23 Проголосовать: не нравится

    Understood, the community thinks otherwise.

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

      I think Div1 was much easier than usual, so its not balanced imo.

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

        I agree with you on the difficulty. Read your comment on Codechef as well and yes maybe the 5th problem was a bit too easy for D1 E but one problem being slightly easier shouldn't be too much I guess. Looking at the number of submissions I still feel it was balanced maybe could have been better with the 5th problem getting ~15 ACs and the last one ~5.

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

          The number of ACs are not a good estimate today, the 4th problem (interactive one) was also easier for its position.

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

How do you solve Div. 1 C? I've only got solution for A=1, but I guess that gives no hints. :P

»
2 года назад, # |
  Проголосовать: нравится -16 Проголосовать: не нравится

Good Problems. Liked the Contest.

»
2 года назад, # |
  Проголосовать: нравится +65 Проголосовать: не нравится

isn't MNULS's testcase too weak?

the greedy solution: go to the largest B. once B = A + k, it'll be that all the way.

will pass the test, but 5340 93 can hack this solution. (correct:61, greedy:62)

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

    We didn't come up with such a solution and it takes too many tests to cut off such stuff (

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

    Okey, I don't understand how it could go, because I cut off such a solution explicitly, for ~1900k :/

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

    This doesn't work even with n < k)))))

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

      This provably works for N < K, because you just spend all your time squaring anyways, which the greedy does. There are ~300 values of K <= 5000 which break this solution, here are the paths that I found so far: https://pastebin.com/YLw8e13p. (The number after BAD is K, the top path is the greedy, the bottom path is optimal.)

      Some of them are pretty interesting and require a few steps beyond K, like

      BAD 404 8
      1 2 6 42 441 843 1245 1647 
      1 2 6 42 441 840 1244 1648 
      
»
2 года назад, # |
Rev. 2   Проголосовать: нравится -12 Проголосовать: не нравится

No one has sent a normal solution for last problems behind O(k^2loglog) :/

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

how to do NOL_LESS? My n*sqrt*log solution with fft passes in 0.69/2seconds. But I hope you have a solution with adequate complexity.

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

    I also passed the same, but it isn't n*sqrt(n)logn fully. I guess it's around nlog^2n or maybe even lesser.

  • »
    »
    2 года назад, # ^ |
    Rev. 2   Проголосовать: нравится +10 Проголосовать: не нравится

    The complexity is bounded by $$$\displaystyle \sum_{k=1}^{\sqrt{n}} k \log n + \sum_{k=1}^{\sqrt n} \dfrac{n}{k}\log n$$$. The first sum is $$$ O(n\log n)$$$ and the second one is $$$nH_{\sqrt{n}}\log n= O(n\log^2 n)$$$ where $$$H_k$$$ are harmonic numbers.

»
2 года назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

How to solve Sleep Technique ?

»
2 года назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

How to solve Optimal Sorting ?

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

    Simple algorithm

    Short code
    • »
      »
      »
      2 года назад, # ^ |
        Проголосовать: нравится -8 Проголосовать: не нравится

      Can you explain your logic for once?

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

        Find the last position of every value in the sorted array then till the current index of that value in unsorted array is less than that original position we have to make at least a single operation to sort that subarray from I to that last position in between the way to that position check for other elements last position and update the current last position and finally when you reach the final last abort and. Do the operation.

        It will always give you minimum no matter what is the order of array

»
2 года назад, # |
  Проголосовать: нравится -26 Проголосовать: не нравится

Greatly balanced contest!!

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

I guess the test cases for OPTSORT are weak. My Solution which is supposed to give TLE on large test cases, passed.

»
2 года назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

are there prizes in this contest (for top 100 div-1 participants) ?

»
2 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

This account and This have rankings 200 and 201 and their codes are exact same for all problems . They did the same in earlier CookOff . Activities like this take down the credibility of ratings .

»
2 года назад, # |
  Проголосовать: нравится -14 Проголосовать: не нравится

"Sleep Technique" looks like combining 2 very standard problems.I wonder how it got approved by CodeChef admin