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

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

Round F starts in less than an hour! See you on the scoreboard!

http://goo.gle/KS-2022-F

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

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

Good luck everyone!

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

Runtime Error on Test Set 1 of problem B when I would have passed Test Set 2, because N is bigger for Test Set 1. Damn.

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

Could have got 12 more points if I had 2 more minutes.

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

In D2, I used some algorithm for the first time I don't even know to get AC. The trick basically updates the sum of first $$$k$$$ people's cancelled meetings from an ordered set of $$$n$$$ people (sorted by count of cancelled meetings).

Can anybody quote the algorithm? Or is it just a random one?

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

    Are you challenging us to guess what you did, or are you asking us whether what you did has a formal name?

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

      Yeah, I am actually interested in the formal name for what I did. Apologies that I didn't quoted my submission.

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

        Looks like you're using the kth order statistic feature of ordered set, a policy based data structure based on red-black trees.

        I'm not aware of a formal name for what you're doing here; just that you are using the features of the data structure.

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

The second problem had a natural problem statement, however as obvious as it may seem to lot of readers, authors should specify enviroment variables such as the bottomost container indicates it is kept on surface of some body with gravity because the principle linked in editorial only works with certain conditions IIRC(bottom level is closer to the body exhibiting gravitation force on water, there is gravitational force). The problem also incentivisted people who have studied a little bit about fluid mechanics and seen this experiment.

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

    When I read the statement I initally thought this was unclear too. One of the examples does clear up any ambiguity, but I agree that it should be in the statement.

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

The constraints on B were evil. I just looked at test set 2 and got a Runtime error because of it.

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

Problem C (Story of Seasons) Test Set 1 is very similar to this AtCoder problem: ABC137d

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

Can anybody help me figure out why I am getting a wrong answer on test 2 in Problem C !!

The link for the submission is https://pastebin.com/x5hSZaPp.

Please help !! Thanks in advance :)

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

    I was getting TLE from the debug lines (I guess Google doesn't have ONLINE_JUDGE defined), and then there's a small mistake. Maybe this test case can help you find it?

    Spoiler

    (the solution)

    Spoiler