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

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

We will hold Panasonic Programming Contest 2025(AtCoder Beginner Contest 406).

We are looking forward to your participation!

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

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

website not loading. 500 Internal Server Error

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

Why is there a 500 Internal Server Error?

»
17 месяцев назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -8 Проголосовать: не нравится

Problem D is repeated. If I'm not mistaken then I solved the same problem with a different statement or a problem with the same logic in a recent ABC.

The problem

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

I thought a persistent version of F could be an interesting problem.

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

In my opinion: G>C>E>D>F>B>A

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

promble C should not be promble C

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

I found Problem F to be quite similar to Problem D of Recent LeetCode Biweekly Contest 154.

Similar logic can be applied though; I ran out of time to solve it..

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

The quality of problem E is very high. Problem F is too formulaic and can be solved with a simple tree decomposition, or even without it, just using DFS order + Fenwick tree.

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

F is much easier than E for me.

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

It took me a long time to solve problem E, so I didn't have time to solve problem F

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

I got 6 WA on B idk where I went wrong

can someone tell me their approach?

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

For E , I used bit dp to get count & sum of numbers and I am getting WA . Can someone provide me relevant test case where my Code fails.

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

    exact same failure pattern for me too.. using digit dp ... :(

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

      can you explain the code for digit dp?

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

        I am not very good at digit dp .. so didn't do it during contest but I can give high level idea and also I can't explain it very well .. here is my submission

        https://atcoder.jp/contests/abc406/submissions/65933199

        first I counted how many numbers with K bits are possible which happens in recurCnt .. the idea is to keep track of how many 1s I have used using cnt parameter ...power parameter is I think not used in this function

        then I counted recurSum to count the final answer... it uses recurCnt result but using a dp table

        one thing which changes in recurSum is if I have a 1 somewhere .. it have a value of power in its current position .. so how many times this 1 will contribute to the final answer is the value of this 1 which is power multiplied by count of smaller numbers ( in terms of length ) with remaining occurrence of 1s

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

    I debugged my code .. but didn't look at yours

    I was calculating two DPs .. count DP and sum DP ... both were 64-bit integers ... I was multiplying 64-bit count DP with some big number in my code which was overflowing.

    I handled modulo for sum DP but had to do it for count DP as well kind of

»
17 месяцев назад, скрыть # |
← Rev. 4  
Проголосовать: нравится 0 Проголосовать: не нравится

help me find the bug of my code in Problem C : AC x33, WA x5

Click this link to check my code

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

The DEF problem in this contest has the same problem in other OJs

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

Well, problem C is really harder than D and E.

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

Why I got WA and TLE on G here?

I learned how to do this problem here and I used slope trick and std::map.

I hope AtCoder can allow users download test cases again. This is useful for participants and I don't know why AtCoder stop public test cases.