atcoder_official's blog

By atcoder_official, history, 17 months ago, In English

We will hold UNIQUE VISION Programming Contest 2025 Summer (AtCoder Beginner Contest 411).

We are looking forward to your participation!

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

| Write comment?
»
17 months ago, hide # |
 
Vote: I like it -11 Vote: I do not like it

How to do D and E?

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

Kept getting RE on D. How did y'all optimise it?

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

    Go backwards and keep track of the node you want the string at.

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

    I used a trie like structure for D, but instead of starting at 0, i start at the last node stored for that particular PC/server. Also store parents to find the final string and you're good to go.

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

$$$D$$$ is an amazing problem. How to solve $$$E$$$? I am bad at probability problems :(

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

    Let $$$x_1\cdots x_n$$$ be the face results. $$$E(max(x_1 ... x_n)) = \Sigma_{all face values x}x \cdot P(max(x_1 \cdots x_n)=x)$$$. Here, we know $$$P(max(x_1 \cdots x_n)=x)=P(max_x \leq x)-P(max_x \leq x-1)$$$. So, in this light, we go in ascending order of the $$$x$$$ and $$$x-1$$$ we are concerned about finding the probability for. I did this by maintaining sorts of pointers for each sorted array of die faces and using a set to keep updating the smallest-value one as long as it is $$$\leq x$$$ for the current $$$x$$$. In this way, with some slight nuances when dealing with going from probability of 0 to nonzero probability, you can maintain $$$P(max_x=x)$$$ and $$$P(max_x=x-1)$$$ as you increase $$$x$$$. Add them up and you are done.

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

Did anyone do F with DSU + bitset?

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

G is a repeated problem: CF11D

Though I liked the idea of DEF, I still downvoted the contest. Why cannot AT spend some time on checking the repeated problem? This will ruin my interest in participating in ABCs.

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

G shouldn't be at that position, could be better at maybe D or E

»
17 months ago, hide # |
← Rev. 4  
Vote: I like it +3 Vote: I do not like it

I think the problem G isn't creative enough, it had an almost same method with CF11D, only added multi-edges.

At the same time, how does AtCoder check AI? I have a classmate (I cannot say or I'll screwed) who use AI without skipped before...

UPD: Banned. I don't know it's good or bad.