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

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

We will hold Tokio Marine & Nichido Fire Insurance Programming Contest 2023(AtCoder Beginner Contest 304).

The point values will be 100-200-300-400-475-525-625-625. We are looking forward to your participation!

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

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

Is there a long queue now? 30 minutes passed and my submission is still waiting for judging.

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

Don't DDoS AtCoder Please !!! Please !!! Please !!!

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

so much long queue :(

is there any issue with the judge? my solution to D is judging for 15mins, yet not started!

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

What happened to the queue? Waiting for my results on F...

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

Mine has been waiting for 20 mins.

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

It was difficult to connect AtCoder until 21:06(JST), so I could't reach rated.

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

Submitted Question E, but it's still in the queue. Will they consider it?

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

extended by 20 minutes

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

Extended time!

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

How does extending the contest time helps with WJ?

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

what's the point of extending time when solutions are still not judged?

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

wait if solutions are still taking a lot of time to judge how will extending contest time help? isn't the damage already done?

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

In such cases, at least do 1 optimisation that if on any test case verdict is not AC, then don't judge the further test cases

This will take way less time and avoid such a long queue.

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

    well to be honest this had to be done regardless of bad queue condition or not

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

      Actually, earlier this issue was not there, so in such cases it is good, we get to know how many TC got AC, WA, TLE, etc.

      As far as queue is small this strategy is good, but in these cases not.

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

        You're correct in that point, but still we are not contesting in a point-per-testcase system, so I didn't really feel much of a need of that statistic. I think showing the testcase number where the failed verdict first happened (just like CF does) is already enough.

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

          in case u got 1 WA and 1 TLE, then you will try to cover the edge case as well as optimise your code in the next submission, otherwise you will be doing at least 2 submissions.

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

    I think it is a very good idea! There should be two modes: the normal mode and the conjestion mode. The conjestion mode should not judge further when it meets a testcase without an AC verdict. Besides would you please add some system monitors like Prometheus?

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

Will today's contest become unrated?This evaluation speed has had an impact on me with a score of 114514.

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

Does problem D require some particular Algo/data structure? I thought about a binary search sol but would have been too slow in the end. Any hints?

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

    Binary search

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

      mmm ok... Like u can compute the number of strwb. between two horiziontal lines in nlogn and the same for vertical lines in nlogn using bs. But then? In order to put together the two informations and get the # of strwb in each piece u need up to n^2. Which won't pass. Am I loosing something?

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

This contest is a compensation for the unrated ABC299.

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

    But I still think that it would be very unreasonable for this competition to be rated.

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

    The same company who sponsored ABC299 and ABC304 is DDoS-ed again. Both contests are made unrated.

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

    yep, and through all the unrated contest Atcoder had decided, I lose at least 80 ratings.

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

What's wrong in this code? Please can someone help!

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

    Problem D?

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

    Your solution is correct, just use lower_bound instead of upper_bound and it should work as we also need to consider the points on the rectangle's boundary.

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

      No need to consider borders, the constraints discard this happening.

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

      i used lower bound and it still fails. Also boundary checks aren't neccessay since 0 < pi < W and 0 < qi < H.

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

        My bad you guys are correct, there is no need to check boundary points.

        I think it's not working because of this:

        for(auto el : gather_points){
            mn = min(mn, el.second);
            mx = max(mn, el.second);
        }
        

        it should be mx = max(mx, el.second);

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

          Bruh, i have this intense anger right now, this queue really irritated me coz half of the time i was looking for the verdict instead of actually debugging my code

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

I don't think there exists any reason to be unrated...

I lose 65 ratings...

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

Problem G is interesting and the solution is reminiscent of Codeforces 1616H Keep XOR Low. Thanks!

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

I learned a lot from editorial of problem F. Thanks to the problem writers. Here is my solution, which is a little different from the editorial.

For example, if n=12, then we should consider t=1,2,3,4,6. But, in fact we don't need consider t=1,2,3, since for t=1,2, all the results must be included in t=4, while for t=3, they must be included in t=6. Therefore, it is enough to only consider t=4,6. In general, assuming that n has prime divisors, p1,p2,...,pk, we only need consider n/p1,n/p2,..,n/pk. Moreover, integers <=1e5 have at most k=6 distinct prime divisors.

Next, we could use the inclusion-exclusion principle to solve it. Assume that d1=n/p1,d2=n/p2,..,dk=n/pk, then the final answer is f(d1)+f(d2)+...+(-1)*f(gcd(d1,d2))+(-1)*f(gcd(d1,d3))+..+f(gcd(d1,d2,d3))+...

The total complexity is O(2^k*n).

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

It turns out that one of my AC submissions on problem D is wrong, and it fails on the following test.

test

Is it still possible to add any test now? If yes,can you add it?

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

Are ratings updated for ABC 304 ?