atcoder_official's blog

By atcoder_official, history, 17 months ago, In English

We will hold AtCoder Beginner Contest 404.

We are looking forward to your participation!

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

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

Anyone knows why kenkoooo hasn't been updating the problem difficulty for nearly 2 months (since ABC397/ARC195/AGC071)?

The problems of ABC402/ABC403/AGC072 is also not shown in the chart.(Though I can see my submissions on those problems in /user-submissions.)

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

    I think it is related to this post: https://atcoder.jp/posts/1457

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

    UPD: Now kenkoooo has updated all the problem difficulties. It really helped me a lot (in tracking my progress effectively, choosing problems that are suitable for me and so on), so it was really relieving to see the chart coming back :)

    But why hasn't anyone explained what caused that? Before that I thought there is a web crawler or something that works on its own. I was recommended to use clist.by instead, but I wasn't really used to it. What's more, I can't figure out why I get -8 votes for my second comment. I was just trying to prove https://atcoder.jp/posts/1457 doesn't explain anything.

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

If we change Page Not Found to Beginner Contest:

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

Another AI Beat Contest.

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

Why AC*48 WA*6 here?

Sad, I lost my AK because of corner cases.

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

In C , isn't checking for the frequency of all nodes as 2 will do ? I got 4 WA for it

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

    6 6 1 2 2 3 3 1 4 5 5 6 6 4 Try This. The graph can contain multiple cycles.

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

In Problem F, the solution which uses brute force to enumerate every strategy can get Accepted. In theory, the Time Complexity is

$$$ \Theta\left(T \cdot K \cdot C^{\sqrt m}\right), \quad C = \exp \left( \pi \cdot \sqrt{\dfrac 23} \right) \approx 13. $$$

Is the solution expected?

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

    personally I did an $$$O(m^3tk)$$$ DP solution where for each button you try pressing it some number of times and take whichever gets you the best expected value.

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

    I have the same idea but got a WA. Can anyone be so kind as to tell me where I was wrong?

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

    The 30th partition number is 4565, so $$$4565\times30^3\approx 1.23\cdot 10^8$$$ can easily pass F. I don't think it is expected though.

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

    emm I don't know what your $$$C$$$ means, but using DFS you can get that the number of diffrent strategies every round is at most $$$5604$$$.

    void sch(int rst){
    	if(cnt > n) return;
    	if(!rst){
    		tot ++;//the number of strategies
    		return;
    	}
    	for(int i = min(a[cnt],rst);i;i --) a[++ cnt] = i,sch(rst - i),cnt --;
    }
    
»
17 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Any hint for E?

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

    I tried BFS but was not able to get it. Not sure if I was missing an additional step or if I have to use a different approach entirely

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

    dp

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

ban lkfush please. this is an alt account and i can confirm he use ai in the contest 1 2

ban SB_JAPEN, this username is not legal and he must use ai cause he solve ABCDEF veryvery fast

ban timebomb please. he must use ai too

mywwzh is the bigest cheater in China, ban him too please

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

I'm trying to figure out why is E allows for $$$O(n^2)$$$, because I claim that this algorithm should pass in O(n) and is straightforward:

Spoiler

Can someone please help me find a test case that should break this? Thinking about multiple possible test case ideas but they all get $$$O(n)$$$ amortized.

(P.S I'm aware of the $$$O(n$$$ $$$log$$$ $$$n)$$$ solution, but I'm trying to figure out why the range min queries are not $$$O(n)$$$ amortized considering the fact that all queries are special since they are all of the form $$$[i-C[i], i-1]$$$ which is not the same as in a segtree problem, which can solve for any general range.)

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

    I'm not sure I follow, how do you do the instructions of the third paragraph without visiting all the bowls accessible ? Because if you need to visit for each bowl, every bowl between its range, then your complexity should be O(n²)

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

      I think a solution of time complexity O(nlogn) is possible.

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

      Here's the thing, you do! However, there's a very key observation to be made.

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

      Just managed to prove that surprisingly in this case, despite the worst case being $$$O(n)$$$ for each bowl you can get it down to $$$O(n)$$$ amortized if you're clever with how you manage part of the approach you mentioned as supposedly having worse case $$$O(n^2)$$$! (The challenge however, remains in proving that not implementing this allows for $$$O(n^2)$$$ worst case)

      While segment tree is useful to guarantee $$$O(n log n)$$$, because your queries are more specialized (specifically, the start/end points of your queries are known beforehand and the queries chosen are those based on the moves you make, which you have some information you can learn about while doing the algorithm, i.e. "those elements cannot be options you can pick on any future queries"), you can actually avoid the requirement to maintain a segtree which allows for $$$O(n)$$$.

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

    Maybe due to $$$\sum_i c_i$$$ is $$$O(n^2)$$$

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

    DP was more straightforward , there could be $$$O(NlogN)$$$ optimisation but that wasn't needed to be forced,

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

    Figured out that this algorithm would be $$$O(n)$$$ if we're clever with our checking. The question remains of whether or not a direct bruteforce without this optimization is $$$O(n^2)$$$ or also $$$O(n)$$$ by using amortized analysis.

    Completing the Algorithm/ Proof of O(n)
»
17 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I performed pretty badly today, sucks to be stuck in E after 1 WA...

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

why does my greedy bitmask not work? Link. I believe that if there is a smaller mask, then we don't we need to worry about it in the super masks

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

    I'm somehow confused by your idea.

    Why is it cur += 2 * cost[j];?

    An animal can be seen twice in two different zoos.

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

Is G a known / standard problem as it seems very difficult to be solved by so many people ?

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

Will there be any English editorial, or just Japanese one?

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

I think this problem, abc266 E — Throwing the Die, is very similar to today's F.

Somehow I find that atcoder team really likes this kind of problem, which has the following dp pattern. Let dp[x][y] denote that we still have x steps to go, and currently we have obtained y scores, and the value of dp[x][y] denotes the probability. We can find the transition by considering what scheme we select to do in the next step, and thus dp[x][y] usually depends on some dp[x-1][y+z].

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

    Maybe, but that solution is a 1d dp which is very different from this.