atcoder_official's blog

By atcoder_official, history, 14 months ago, In English

We will hold AtCoder Beginner Contest 424.

We are looking forward to your participation!

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

| Write comment?
»
14 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Why did the title size of this competition become smaller? Strange but cute. ^o^

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

    Maybe because its Japanese name is too long.

    #main-container > div.row > div:nth-child(2) > div.insert-participant-box > div.mb-2 > h1 {
        font-size: large;
    }
    

    which replaced this:

    .insert-participant-box h1 {
        font-size: 300%;
    }
    
»
14 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

What a small title!What happend?

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

    I'll show you its Japanese Name(((

    AtCoder × Engineer Guild オンサイトコンテスト ~集結!高レート人材~予選(AtCoder Beginner Contest 424)
    
  • »
    »
    14 months ago, hide # ^ |
     
    Vote: I like it +3 Vote: I do not like it

    catch LSY_NY

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

Good luck!

»
14 months ago, hide # |
← Rev. 3  
Vote: I like it -27 Vote: I do not like it

.

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

I found this rather difficult for an ABC contest.

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

How to solve D ?

»
14 months ago, hide # |
 
Vote: I like it +23 Vote: I do not like it

Again. I think Problem E >> Problem F.

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

    How did you do Problem F ? DSU?

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

      Consider chords as linear segments. So you just have to check if new chord inserted will intersect with already available segments. So if current chord is l,r. Then find minimum (L)left endpoint of any segment that has right endpoint in range(l to r). Similarly check for maximum R.

      U can use segtree for it.

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

        You can also use XOR hashing + Fenwick tree. Assign a random value to each endpoint of the segment when you add. If the XOR of a new segment equals zero, that means you can add the current segment. Otherwise it means it intersects with another segment.

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

      segment tree.

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

I think D is harder than E and E is harder than F.

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

Please always remember that unordered_map is unordered, so when you use it, --mp.end() will NOT return the maximum value in umap

»
14 months ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

On problem D today, I abused PuLP, a library for optimization problems like (integer) linear programming, which is coincidentally also preinstalled in atcoder's Python environment.

The problem can be modeled as a Set cover problem, by considering cells as sets (of uncovered squares that the cell will cover) and 2x2 uncovered squares as elements in the universe set. Then, by describing the problem as an integer linear program, you can get AC with a sufficiently small runtime.

The accepted submission is here.

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

    Ahah, well done, I didn't know PuLP was preinstalled. I'll definitely abuse this later.

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

Any Hints / Suggestions for Problem E ?

I was looking for something like binary search.

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

    I solved it greedy way , it worked.

    store the stick lengths' with their counts in a ordered container.

    While k>0 remove the longest stick (l) min(count,k) add new min(count,k) sticks with length (l/2). update k

    After that iterate the container to get xth longest.

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

How to hack this solution of problem D? link

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

atcoder_official this user cheated ,he solved problems A,B,C and then use LLM to code remaining problems.(Rank-54).

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

Problem E can be solved using the fact that we have to print answer close to 1e-9 actual answer. So, we can maintain a frequency map and simulate the operations till the largest element in the map is more than 1e-11. Note that before 100*n operations, the simulation will surely stop. After this, if there are atleast x numbers in the map, then print xth largest number from map, else print 1e-9

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

funny!

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

Is F same as or a slightly harder version of ABC338E E-Chords?

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

Good F