atcoder_official's blog

By atcoder_official, history, 5 weeks ago, In English

We will hold AtCoder Beginner Contest 469.

We are looking forward to your participation!

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I can't participate in this contest. I registered for CF Round 1113, which, after all, was the key competition for the debut to increase the rating.

  • »
    »
    5 weeks ago, hide # ^ |
     
    Vote: I like it +11 Vote: I do not like it

    Note that the time of abc and Round 1113 doesn't conflict.

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

      I think it'll not because the difference between the timings of ABC contest and Round 1113 CF is smth like ~2.5hrs (i think so)

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

      Oh, the start time of Round 1113 has been adjusted from 19:35 to 22:35. I didn't see this news.

»
5 weeks ago, hide # |
 
Vote: I like it +16 Vote: I do not like it

No 600+ G in ABCs! I believe it is good to keep the high quality problem like 2300+ rated problem G for ARCs and AGCs and make ABCs problemset within the upper bound of 2100-2200.

To avoid the contest being a typing speed competition, we can have problems C-F on a harder side.

Problem Ratings for ABC 468 (According to CLIST)
Problem Ratings for ABC 467 (According to CLIST)

This was just a constructive feedback from my end to the AtCoder officials. I still find them to be high quality rounds, but this is one key area that can be worked upon based on recent rounds. Earlier, even this part was well handled.

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Rated register is the worst choice I've ever made.

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can anyone explain your approach for the task C and D. Thanks!

»
5 weeks ago, hide # |
Rev. 2  
Vote: I like it +14 Vote: I do not like it
»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Problem statements were really bad, but good problems.

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

F is a DSU. G is Matrix Power

»
5 weeks ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Hello Atcoder! I can hack my own solution of D using the following testcase:
3 2
1 2
2 3
Whose answer should be 3 but my output was 2. Would you rejudge problem D?

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

how to solve D ?

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

    I was thinking I need 2 loops 1. {x,minn} 2. {x,maxx}

    where minn and maxx are from last M'th round.

    but then for these pairs i need to know if the pair is getting partially overlapped with all M pairs. (this I couldn't think of how to do fast) with lesser complexity

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

    Let $$$f_1[i]$$$ denote the total number of finals played by player $$$i$$$, which is initialized by counting the occurrences of each player in the input pairs. For a pair of players $$$(x, y)$$$, the number of distinct finals covered by them is given by:

    $$$f_1[x] + f_1[y] - \text{common}(x,y)$$$

    where common(x,y) represents the number of times players x and y have played together in a final. A pair of players is valid if and only if they cover at least m distinct finals:

    $$$f_1[x] + f_1[y] - \text{common}(x,y) \ge m$$$

    where m is the total number of finals.

    Approach

    We process players in increasing order of their IDs from $1$ to $$$n$$$, maintaining an ordered set (PBDS) of pairs (f2[player], player) for all previously processed players.

    For each player $$$y$$$:

    1. Adjust for shared finals: If player $$$y$$$ has played a final together with player $$$x$$$ (where $$$x \gt y$$$, since we store the larger index as the first component and push $$$y$$$ to $$$G[x]$$$, or vice-versa based on if (x < y) swap(x, y)), their combined count needs to subtract the shared finals. Since we maintain $$$f_2$$$ arrays, we temporarily decrement $$$f_2[x]$$$ in the ordered set for all $$$x \in G[y]$$$.

    2. Count valid pairs: We then query the ordered set to find how many previously processed players satisfy the condition:

    $$$f_2[x] + f_1[y] \ge m \implies f_2[x] \ge m - f_1[y]$$$

    using:

    int C = ((int)(os.size())) - os.order_of_key({m - f1[y], -1});

»
5 weeks ago, hide # |
 
Vote: I like it -10 Vote: I do not like it

Problem statements are really horrible.

»
5 weeks ago, hide # |
Rev. 2  
Vote: I like it +3 Vote: I do not like it

After the contest I submitted a linear time solution to E that gets AC but the code is wrong, it gives wrong answer for a test case I found with brute force. I think there are people that submitted code with the same wrong idea in the contest. Will the solutions be rejudged?

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to solve problem E?

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

    Binary search on the answer.

    If you are checking whether v is able,you can set $$$o=1$$$ and $$$x=\frac{-v}{1-v}$$$,then check there's a non-negative subarray with k 'o's or not.

»
5 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

why the fuck we need to ./Main.cpp: In function 'int main()': ./Main.cpp:25:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | if(i<ans.size()){cout<<ans[i]<<endl;}else{

man this much is too much like first think logic then this shit i did love this they should remove this things

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

I can't participate in this contest because of CloudFlare.

»
4 weeks ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

how can i optimise problem c ?