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

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

We will hold AtCoder Regular Contest 123.

The point values will be 300-400-600-700-700-1000.

We are looking forward to your participation!

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

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

Hope for a good contest!

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

Ah, It's too hard! :(

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

For the first time I solve three problems in ARC.

I'm so happy :)

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

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

How to solve C?

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

how to solve D? there's no editorial for it

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

Err......Starting from C, the problems are too hard for me:(

I have to say, contests in AtCoder are becoming more and more challanging. Is that because the problem setters are stronger and stronger or I'm weaker and weaker?

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

    I think AtCoder is turning harder and harder.

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

    All the latest ARCs are mostly hard, you also need to get used to the ARC problems, on my first ARCs I always had a bad performance and the problems seem quite difficult, however after some contests, you will find the problems more accessible (excluding all F's, and some E's, and the other problems are still hard, but at least you can elaborate more on how to solve them). They are really fun and you can learn and enjoy a lot. I am really grateful to all atcoder writers, coordinators, and staff, the contests are great.

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

Why number of contestant is so small than number of contestant at any begginer contest !!

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

The approach of problem D is similar with 1406D - Three Sequences, 1442A - Extreme Subtraction.

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

How large could the answer be for problem D? I thought the answer could go up to $$$10^{18}$$$ which was a terrible mistake as I got 7 WA because of it and changing the limit to LLONG_MAX just solved the issue.

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

For A the approach I followed is,

Let mean of consecutive differences in the array be dd;

So I iterated on differences from (dd — epsilon) to (dd + epsilon) (epsilon can be anything I considered 2) and checked all possible arrays for a particular difference and took the array with minimum operations. It got accepted but I cannot prove it.

Can anyone help me with the proof?

Here's my submission Task A

Thanks in advance :)

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

How to solve B?

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

    First sort all the three input arrays(A,B,C) and then count for valid triplets such that the upper bound of first element from the first array A uniquely exists in second array B and upper bound of that element from second array B uniquely exists in third array C.

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

      thanks nice explanation :)

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

        It's surely TLE.How can you expect erase function to work in $$$log(n)$$$ complexity. I used ordered set to erase the elements whose complexity is $$$log(n)$$$ unlike vectors.

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

          I mean all self-balancing binary search trees, such as the std::(multi)set (red-black tree) or avl trees, allow deletion in $$$O(log(n))$$$ complexity due to its self balancing nature. For this specific problem, I used std::multiset which worked under 150ms.

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

Thanks a lot for a detailed editorial like this.

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

Will you provide the code for F?

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

In Problem C Can Anyone Explain

  • A number can be written as the sum of K good numbers if and only if it can be written as the sum of the following:
  1. An integer between K and 3K;
  2. The sum of at most K good numbers, multiplied by 10.

The above statement in Editorial. It would be a Great Help