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

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

We will hold Daiwa Securities Co. Ltd. Programming Contest 2022 Spring(AtCoder Regular Contest 138).

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

We are looking forward to your participation!

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

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

thanks for leaving $$$N=K=1$$$ as a testcase in D

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

Remind me why ARCs are not rated for 2800+?

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

Nice problems, but I am not sure if putting problems like EF in ARC is even reasonable if there are $$$5$$$ and $$$2$$$ ACs in the end...

Interesting fact: since 2021, maroonrk has authored $$$8$$$ ARCs and $$$1$$$ AGC alone, has coauthored $$$3$$$ ARCs and $$$1$$$ AGC, and wrote an entire OpenCup set (and there may be many more I am not aware of). How to be so productive...

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

I find B easier than A

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

    Same, C was also really nice

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

    Could you please explain B solution?

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

      You can check my video editorial of A and B if you have any confusion

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

      B solution that may be easier than editorial solution:

      First, consider the problem in reversed time (so you start with the given array and want to reduce it to empty. Op A is "remove first element, which must be 0, then flip remaining elements", op B is "remove last element, which must be 0")

      Notice that op B should always be done if possible. That's because if op B is possible, doing some number of op A first would either make it not possible anymore, or simply make it possible again, and then performing op B then would just put you in the same position as if you did op B before those ops A. The operation choice is now deterministic and can be easily tried by simulation (using a parity bit to emulate flipping the array, or just notice that it's equal to the parity of your left-pointer)

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

Im painful. Anyone can tell me about just one WA TC? Submission

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

Problem D appeared last year on Luogu Monthly Contest. Fun fact, the writer participated in this contest.

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

Thanks for participating! I didn't intend to make ARC this challenging, but E and F were much harder than I thought.

BTW, is D known in China?

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

What is basis in Editorial of D?

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

Note that problem D is same with a problem on a Chinese online judge.

link:https://www.luogu.com.cn/problem/P7949

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

    Actually, you can copy the solution and change the 01into a Yes No.

    Then you can get it accepted.

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

D is a famous problem and you can get the solution on a Chinese online judge. Many Chinese coder pass this problem quickly lol

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

Thanks for task D Rolling_Code.

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

Problem A&B is much easier than before,and problem D appeared on luogu,a Chinese online judge.It's surprising that there are 16 Chinese contestants in the top 20.

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

fun contest

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

The idea behind problem C is so wonderful! I never tried to guess that we are always able to get the maximum N/2 values. Moreover, the trick of proving this fact and construction is also amazing, really beyond my imagination. Problem writer has done a great job, thank you :)

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

I have hard time understanding the editorial for problem B. Can somebody explain?

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

    For B, I used deque as the data structure because I planned to both pop in the front and pop at the back of the deque. In the beginning, I kept popping '0' at the back of the deque until I cannot. Then I check if the front of the deque is '0' and if so, I pop_front() and then flip the remaining deque. Otherwise, the front of the deque is '1', return 'No'. I keep doing the above until the deque is empty. If I can reach empty deque, the answer is yes. The above is the brute force way. It will TLE. Therefore, make a boolean flag to record the current state is flipped or not. Then there is no need to flip the deque. Based on the current state of flip, we treat '0' as '0' or treat '0' as '1' and '1' as '0'. Then, there will be no TLE.

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

In this contest I registered unrated and I didn't have any submission. Why this contest still rated for me
?. link. maroonrk Pls check. Thanks u.