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

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

We will hold Denso Create Programming Contest 2025(AtCoder Beginner Contest 413).

We are looking forward to your participation!

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

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

When we are trying to submit a solution, there is no way to submit. Why?? And why the task is not readable? when we click in any problem, no descriptions is opened? Is it a bug or it could be a problem in my system?

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

emm

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

The Problem G is exactly the same as the problem CodeChef Starters 121 / CHEFESCAPE. I used a silly BFS search when I solved it nearly 1.5 year ago, and this time I use a better and easier DSU to implement it.

Solution 1.5 year ago: here

Solution today: here

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

Problem $$$D$$$ is so annoying to implement.

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

For D, I tried to first separate the sequence into negative and positive part, then sort positives normally and sort negatives in reverse, then intersect them to restore the geometric sequence.

what could be the issue in the logic?

can't I just avoid floating point precision lost using big decimal?

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

Thanks for your amazing F, I really enjoy it

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

G too easy than other rounds' G. D too rubbish than other rounds' D.

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

Trash C.

F**KING AtCoder put a problem with ORIGIN IN PREVIOUS ABCs

Today's C

The origin

The exactly same code(modification is because of the different input format) can pass both problems.

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

Thank you for problems D and E, I submitted G, 3 mins late.

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

G is too easy for an ABC's G.

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

I took so long on D to find out that I forgot to check for r = +-1. Lost 20 mins to that and thus didn't have enough time to give to F. Oh well.

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

Problem G is basically a simple version of LC 3235.

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

My stupid solution to problem F.

Main fact. Choose a cell. Look at answers for neighbouring cells. The first player will block the minimum one, so the second player will choose the second minimum one.

But we can't do it with a usual bfs, as the dependency is cyclic.

Idea 1. Process cells in increasing order of answer (like in Dijkstra). When the cell has at least two calculated neighbours, set the answer for it and insert it into set. This is fast and wrong, since we can miss the neighbour with less answer, which will be calculated later.

Idea 2. Do "for for" and calculate the answer for all cells as in idea 1. Do it again and again, until it stops change. This is correct and slow.

Idea 3. Do "Idea 1" ++ "Idea 2". This is AC.

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

Can anyone help me with what's wrong with this submission for problem : D submission Logic : 1) If the array contains only positive or only negative elements then just sort the array and check for GP. 2) If there are both positive and negative elements then again sort it , but this time look where to start the GP , for example consider the first positive element and first negative element , and u can decide based off whose magnitude is greater , then alternatively we can check for if its a GP as have done in the code.

Surprisingly , I got 29 WAs , wasnt expecting the logic to be soo wrong ...

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

Can anyone please help me in debugging my solution for problem D.

1)I sorted the array based on abs(value).

2)After that a general G.P check

3)And then if there is a mix of negative and positive elements then I tried checking if all the three elements are either +,-,+ or -,+,- .

Still I am getting only 3AC

https://atcoder.jp/contests/abc413/submissions/67371107