Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

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

Автор hmehta, история, 5 лет назад, По-английски

TCO19 Algorithm Round 2B and Parallel Rated Round is scheduled to start at 11:00 UTC -4 on June 4, 2019. Registration is open for the Round in the Arena or Applet and it closes 5 minutes before the match begins, so make sure that you are all ready to go.
Click here to see what time it starts in your area.

Algorithm Round 2 Qualified Competitors (https://tco19.topcoder.com/algorithm/byes/, https://tco19.topcoder.com/algorithm/round-1a and https://tco19.topcoder.com/algorithm/round-1b) are eligible to compete in Round 2B. Those who have already qualified for Round 4 (https://tco19.topcoder.com/algorithm/round-4) from online stages are not eligible to compete.

All the best!

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

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

i have not qualified for the round 2 is there still a way to qualify for the regionals?

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

    TCO19 Algorithm Rounds are not related to regional qualification! Round 1a, Round 1b and Members who got a bye are eligible for this!

    Regionals have their separate qualification — This year performance in the period of Feb-April was used for qualifying members for the regionals :)

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

      what is the exact criteria for the qualifications to the regionals?

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

          so now there is no chance to qualify for tco ri8?

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

            Yes, however if there are seats left we will open it for members on first come first serve basis!

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

              what do you mean by that? so anyone would be able to attend the regionals?

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

                Which regional are you looking to join?

                So initially we will roll out invitation to the members on the leaderboard: -https://tco19.topcoder.com/regional-events/south-america/leaderboards

                -https://tco19.topcoder.com/regional-events/japan/leaderboards

                -https://tco19.topcoder.com/regional-events/china/leaderboards

                Later some members backout or are not able to attend then we open the leftover tickets on first come first serve basis.

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

Upvote if you didn't like first problem

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

Can Someone explain approach for 2nd Problem?? Thanks in advance.

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

    Just try all divisors of $$$n$$$. For each divisor $$$d$$$, call the same algorithm recursively on $$$n/d-1$$$. During steps other than the first, don't consider $$$d=1$$$.

    In fact, this problem is OEIS A167439.

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

      Is there any analysis for the complexity of the algorithm?

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

      Yeah, I saw that pretty quickly but then I spent over 30 minutes staring at the problem and trying to figure out what additional shortcuts needed to be done and couldn't come up with any.

      I felt pretty certain that doing that would require calling the getAllDivisors() function on too many unique values to be able to run in time because of the subtractions by 1.

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

    Let test N and N-1 separately, so we can assume that there's no 1 in sequence.

    Take a look at $$$a_0$$$, each consequent number is divisible by $$$a_0$$$, so N is also divisible by $$$a_0$$$.

    Now if we divide everything by $$$a_0$$$ we'll receive another sequence with sum of $$$\frac{N}{a_0}$$$ and first element 1. Let's drop that 1 and solve the problem for $$$\frac{N}{a_0} - 1$$$. Just build dp on top of that.

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

Is there a link for schedule of future TCO online rounds? The TCO algorithm page is absolutely unnavigatable.

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

Hard looks interesting. How to solve?

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

    Outline (I'm on the phone now):

    Obviously, optimal strategy is same for both players.

    If d is max difference, you will never play more than 2d+1 because playing 1 is at least as good for all possible choices of the other player. (This is the main observation you needed.)

    Then, write linear equations for the 2d+1 probabilities using "principle of indifference", there is a unique solution. (Some more proofs needed to argue correctness.)

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

    Based on discussion with Egor.

    Basic lemma from game theory: For all $$$p_k > 0$$$ we should have expected winning of exactly $$$0$$$ against pure strategy "say $$$k$$$".

    $$$p_1$$$ is not zero, otherwise we can shift everything to the left. So, $$$\sum_{k=2}^{d+1} p_k \ge 1/2$$$. Now it is easy to see that for all $$$k > 2d+1$$$ $$$p_k=0$$$ (because we are certainly winning strictly more than 0 against this pure strategy). Now we can see than $$$p_k=p_{2d+2-k}$$$ (because everything is symmetric), and we have $$$d+1$$$ variables and $$$d+1$$$ linear equations.

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

      Can you explain why the expected winning is exactly 0?

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

        Because the two players are symmetric? So their expected winning should be the same.

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

          No, I'm asking why the expected winning is zero against the pure strategy.

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

            The optimal strategy is a linear combination of the pure strategies. The optimal strategy scores $$$0$$$ against itself, and never less than $$$0$$$ against any strategy. The rest is linearity of expectation.

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

              That's not the complete explanation. It is not obvious that optimal strategy must not ever lose against every possible strategy, opponent don't know if we use optimal strategy or not. But nevertheless it is true, by minimax theorem.

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

      With proper eps in LP I passed the test cases (Maybe it will fail in some test case).

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

If I'm not wrong then positive score in round 3 fetches a topcoder TShirt?

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

    Right. Also looks like getting positive score was enough to qualify to Round 3 from all prev rounds. So you weren't actually competing against other people, only against yourself :D

    Upd. not really, only 200 people qualify to Round 3, I thought it was 250

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

Where we can find editorials for this round ??

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

I think it's fair that if less than 200 have positive score on round 2A (in our case 132), then on round 2B 200+(200-round_2a_qualified) go on. Proof by (incorrect) feature scaling :)

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

    That would be a clear violation of the rules!

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

      I don't see how it violates a 404 HTTP Error, but it is morally OK, as Round 2A failed to get the top 200 contestants, and I haven't checked but I'm almost sure some failed qualificants from round 2A advanced from 2B

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

Does Topcoder still have problems with sending T-shirt to Russia?