atcoder_official's blog

By atcoder_official, history, 2 years ago, In English

We will hold AtCoder Beginner Contest 369.

We are looking forward to your participation!

  • Vote: I like it
  • +65
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

this round like div.3 or div.4 at codeforces?

»
2 years ago, hide # |
Rev. 2  
Vote: I like it -6 Vote: I do not like it

Let's go, can't wait for this contest!

»
2 years ago, hide # |
 
Vote: I like it -6 Vote: I do not like it

Omg the first time I solve all 7 problems!

»
2 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

problem E was great, but implementation was long

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Not sure if reconstructing the path in F added anything to the problem, but it wasn't too bad I guess

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    i agree lol, i spend like 10 minutes to implement the "counting" part and like 15 minutes to implement "back-tracking" part

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Was F some sort of 2D Segment Tree?

  • »
    »
    2 years ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    You can do it with a regular segtree if you process all coins with lowest rows and rightmost columns first

    • »
      »
      »
      2 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      you can also use fenwick tree, no need to compress the coordinate :D

      • »
        »
        »
        »
        2 years ago, hide # ^ |
        Rev. 2  
        Vote: I like it 0 Vote: I do not like it

        Oops, somehow I tricked myself into thinking that coordinates are up to $$$10^9$$$ lol (and it wouldn't even make sense then to try and output the whole path in a non-compressed manner)

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I liked the problem E very much.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

how can I solve G? anyways, why have there been no official tutorials in English recently?

  • »
    »
    2 years ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    This problem is similar to https://codeforces.me/problemset/problem/1615/E, but we only have weights on edges. Main idea is greedily expand the chosen set of vertices with such vertex that maximizes distance to current set of vertices. And when we add some vertex, we also need to put all vertices to set on path btw set and chosen set. From start set contains only root.

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Don't English tutorials always arrive slightly late? I couldn't spot any recent rated contests without an editorial in English.

»
2 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

E was exhausting, great question.

»
2 years ago, hide # |
 
Vote: I like it -26 Vote: I do not like it

F**k ABC,G has an original problem.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

how to solve C I didn't got a single idea which was working brute was only which I could think of and d also anyone if someone can help me please

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    The logic is to find all contiguous subarrays that form an arithmetic progression (AP). For each starting index l, the code finds the longest subarray ending at r where the difference between consecutive elements is constant. It then counts the number of valid subarrays within this range and accumulates the total count. This is done by extending the subarray as far as possible while maintaining the AP property and calculating the number of subarrays for each segment. The process is repeated for each possible starting index in the array.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

can anyone please tell how to practice dp and trees,graphs question like i can solve dp of difficulty till 1500 and above it its diffcult.

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

atcoder_official Hey there. I got a -89 rating change in ARC183, but I didn't even participate in the contest (was only registered). Can you look this up? I'm sure it might've been a mistake. My atcoder username is "Bruteforcekid"

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    You would be rated even if you just register and didn't submit anything, so it's better to register right before the contest next time :)

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

is there any other solution to E other than brute force? like if we a problems where we don't have any queries. we just have to pass some bridges but the number of bridges can be large(large enough to not bruteforce maybe). How will we solve that version of this problem?