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

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

We will hold Denso Create Programming Contest 2026(AtCoder Beginner Contest 443).

We are looking forward to your participation!

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

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

Hope everyone good luck!

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

Four Language Ver.

Good Luck! Удачи! 幸運を! 好运!

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

Happy winter break!

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

Good luck and happy winter break!

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

Hope everyone good luck! Happy winter break!

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

What a nice day! Good luck to everyone!

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

I was hard stuck in building up logic for D.!

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

Can Anyone explain me the problem E?

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

Good problems. Is $$$F$$$ digit DP? But what is the upper bound on the length of the answer? And when is the answer -1?

  • »
    »
    7 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится
    1. F is not Digit DP.
    2. Bound is length ≤ 9N because exactly N possible remainders from 0 until N-1, and only 9 possible last digits which is 1 to 9 because good numbers never end with 0. And also if number is multiple of 10 then it must end with 0.
    3. Answer becomes -1 if N % 10 == 0, because if n divisible by 10 then it ends in digit 0, so all digits before it must be greater or less or equal than 0 because the sequence is non-increasing from left to right. This forces every digit become 0. But since n needs to be positive number, no solution exists.

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

Problem D was very similar to Codeforces "Nusret Gokce" https://codeforces.me/problemset/gymProblem/104114/N, just that m = 1.

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

I was getting WA on F initially, and got AC after outputting -1 whenever my BFS did not find a value. My initial condition for there being no answer was that N was a multiple of 10. Can someone give an example of a value of N that isn't a multiple of 10 with no answer?

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

Limits seemed really tight on the D problem. Even NlogN complexity soln of mine was given a TLE. I used a djikstra style algo on a "line graph".

My solution

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

Time limits are really tight on F! (especially for python)

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

Can anyone help me out on why my solution to E is giving WA?

https://atcoder.jp/contests/abc443/submissions/72940239

I have just checked if the lowermost wall for each column is destroy-able, then all the walls of that column are destroy-able, then i just destroy all the walls which are eligible and run a simple BFS from source.

As far as i can see, the Editorial solution also destroys all the destroy-able walls, and the concepts seems similar.

EDIT1: This one is also the same submission but using DP instead of BFS https://atcoder.jp/contests/abc443/submissions/72944003

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

    I made the same mistake

    Consider this counterexample

    5 4
    .##..
    .#...
    ..#..
    ..#..
    ..#..
    

    The issue is that you assume that as long as the lowest hash of some column is above the first cell reached from the source we can destroy in that column.

    But here, In column 2, in order to destory the hashes, we need to reach cell in row 3, but that's not possible because the path to that goes through walls that cant be destroyed.

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

      Thank you, i got it, Sorry for late reply, i didnt open cf for a long time.

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

Problem G.
1. I think the addition of $$$1$$$ that makes the equation <= instead of < is simple and intuitive but I just can't understand it. Can someone please elaborate on it?
2. Why adding $$$1$$$ is beneficial?
3. Are there some other problems that requie floor-sum so I can practice it?

Thanks.