atcoder_official's blog

By atcoder_official, history, 12 months ago, In English

We will hold AtCoder Beginner Contest 435.

We are looking forward to your participation!

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

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hope I can solve 5 probelms!

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

A<C<B

A strange permutation.

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

problem G is hard

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

A~F are much easier than G...

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

I found F really simular to a problem in another contest. Good atcoder original contest. Although I finished it(the original problem) before the contest and found the solution of this problem(F) in a quick speed and got much higher performance than before, I will downvote it(this contest).

UPD: https://www.luogu.com.cn/problem/P9352

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

The easiest AtCoder Beginner Contest that I have participated in.

I even solved 5 problems.

UPD: May I downvote this contest?

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

How does 1358 users passed F, a 550 problem ? F is not that easy, is it because F can be solved by chatGPT?

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

    isn't F standard?

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

    Because F is an original question.So I think some people have copied the correct approach.

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

    I think intended solution looks complicated and there is a simple solution.

    Removing max height tower is always optimal (Haven't proved, but intuitively). Once you remove max, the problem becomes into two independent subproblems and we can use recursion to solve in O(n).

    To get maximum, we can use sparse table.

    I felt it is somewhat similar to your div.2 F1.

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

      Yup, I found the sparse table approach (and implemented it after the contest), but I knew I wouldn't be able to do it fast enough with like 10 minutes left because I didn't have a sparse table template ready (now I do lol), so I just gave up.

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

    I personally found F (slightly) easier than E.

    My submission is different from that of the editorial.

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

    I am personally stunned by its 550 score. I don't know where the score comes from.

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

F is an easier version of [JOI 2023 Final] Cat Exercise

P9352 in Luogu.

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Today's problem C concept was similar to recent CF-div2 A i think..

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Really easy... except G. I almost used three line segment trees on C, E and F.

»
12 months ago, hide # |
← Rev. 6  
Vote: I like it 0 Vote: I do not like it

Could anyone take a look at my solution for $$$F$$$? I feel like it's correct, I have implemented the same thing as in Editorial. Submission

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

    Update: Such a silly mistake :( I had to take maximum of the best values achievable from left and right side, which I didn't do.

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to use ODT to solve problem E?

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I was trying to learn form rank 1 as i am learning c++ but end up doing ABC in pypy

and i didnt understand anything form the code!! it was alien...(joke)

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

AK ABC for the first time with less than 3 minutes left ABCDEF are easy but G is much harder

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

today's competition ,ABCDE was so easy,F was a little hard,G was much harder in luogu,AB is red,C is orange D is yellow,E is grean,F is green

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I'm having a little trouble with problem D, can someone help me see where I went wrong? Thanks!

https://atcoder.jp/contests/abc435/submissions/71522303

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

    Most probably the "Yes" and "No" are case sensitive. You have "YES" and "NO" instead.

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

    I think your approach is pretty overcomplicated anyways, no? I just did

    This
»
12 months ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Today's ABC is quite bad!

Problem F is the same problem with Japan OI 2023 Final.

  • »
    »
    12 months ago, hide # ^ |
    ← Rev. 2  
    Vote: I like it +9 Vote: I do not like it

    Well for someone who's new to competitive programming such as myself, it's nice seeing such problems regardless. If you're not looking up solutions during the contest or using AI, the fact that this problem has been asked before is unlikely to detract from your experience.

»
12 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it
»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hi! I'm having some problems with problem C on one particular test case. I want to understand what's wrong. Plsss help. I'm new to cp so don t judge. much appreciated.

https://atcoder.jp/contests/abc435/submissions/71526068

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

    you only jump to the first index in range where arr[i] ≥ arr[start] this can miss a shorter domino located later whose reach (i + arr[i] — 1) is much farther. also your inner loop goes i < end instead of i <= end

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

G is a nice problem! pretty hard compared to the rest of the set but i enjoyed it a lot!

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

is D question solved using kosaraju algorithm ?

»
12 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

For problem D, we can build a graph that has all the edges reversed. When a node is changed to black, we start from it and use bfs to find all the nodes that are still white and change them to black as well. Then, when a node is asked, we can directly give the answer.

Problem E involves that classical interval merging idea. Any interval will be inserted, merged (we can also say "deleted") for at most once, and based on set<pair<int,int> >, we can implement these operations with O(NlogN).

For problem F, here are several important observations:

  1. nothing changes unless the position where the cat is standing is removed

  2. when a position is removed, the cat either goes to left or right, and it can never go back to the other side, since this "removed position" has cut off the connection

  3. we can use an idea like divide-and-conquer, and go to left or right to find the maximum distance. According to amortized analysis, the complexity is O(NlogN), where logN comes from segment-tree or sparse-table in order to get the highest position within some interval.

Welcome to discuss :D (if you would like to send me a message, both English and Chinese are ok)