atcoder_official's blog

By atcoder_official, history, 3 months ago, In English

We will hold AtCoder Beginner Contest 445.

We are looking forward to your participation!

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

»
3 months ago, hide # |
 
Vote: I like it -28 Vote: I do not like it

First!

»
3 months ago, hide # |
 
Vote: I like it -21 Vote: I do not like it

Second!

»
3 months ago, hide # |
 
Vote: I like it -21 Vote: I do not like it

Third!

»
3 months ago, hide # |
 
Vote: I like it -10 Vote: I do not like it

gl hf

»
3 months ago, hide # |
 
Vote: I like it -10 Vote: I do not like it

RP++

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

Oh! AC abcde My rated is 1174 now!My rated is 1200+ after it.

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

Good contest. $$$D$$$ and $$$E$$$ were good problems. How to solve $$$F$$$? It seems to be pretty easy or a well-known idea, judging by the solve count.

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

    Well it's Luogu P2886

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

    Consider the problem of finding the amount of paths from i to j with exactly k edges. This can be solved by finding the entrance i,j in the k-th power of the adjacency matrix. It is possible to adapt this idea.

    Use as base the matrix in which the entrance (i,j) is the cost to go from i to j. Then, define a different operation (instead of the usual product) to apply the matrix exponentiation. Basically, to go from A^k to A^(2k) for each entrance i,j you need to find what is the minimum cost, which can be found by: minimum cost going from i to q in k moves + minimum cost going from q to j in k moves, iterate over q.

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

    It's on CSES https://cses.fi/problemset/task/1724

    Just instead of A^k[1][n] I print A^k[i][i] for each i

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

What is the worst case for the sum of sum of ones in binary representation of all divisors of $$$k (1 \lt = k \lt = 10^9)$$$? I wrote solution in F that works $$$O(n^3*X)$$$, where $$$X$$$ is the sum I mentioned before. (My submission)

UPD: I figured out, that instead of using all divisors, I could just used $$$k$$$. But the solution above also passed.

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

    1344 for k<=1e9, Refer here for different limits.

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

      Yeah, I know that number of divisors is $$$O(\sqrt[3]{k})$$$. But I also interested in sum of ones in binary representation.

      For example: k = 6

      1: 001, number of ones is 1

      2: 010, 1

      3: 011, 2

      6: 110, 2

      So, $$$X = 1 + 1 + 2 + 2 = 6$$$. It seems in the worst case my solution should work in $$$O(n^{3} \sqrt[3]{k} \log{k})$$$ and get TL. Yeah, $$$O(n^3 \sqrt[3]{n})$$$ also shouldn't pass. (probably it passed, because of weak test cases).

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

Didnt solved even c Cuz i <= ai<=n I didnt saw lol

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

    same, I didnt saw it and just start thinking about the binary representation of 10**100, trying to find pattern in base 2 representation of power 10, and many more not work idea :)

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

Can someone please help me understand this MLE submission on E?

Initital submission

Tried some optimizations

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

in C . what if array is [ 3 1 2 4 ] ?

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

in C i didn't see the (i <= Ai) during the contest.. still somehow solved it..

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

It is the easiest Problem F in the ABC. AND D is much harder than F.

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

D has a similar idea to this problem.

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

How to do the division with mod stuff in E after taking LCM of all numbers? They are using their inbuilt library in editorial so no info. Btw great contest.

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

I found the questions to be fun atleast the A and B. I am rated 45 before the contest and now 78 as I solved A and B is 11:18 minutes, it was like a record time for me.

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

HI!!!!!!!!!!!!!!!!!!!!

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

Is really interesting bro

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

not first, second and third

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

C just missed one test case to get the score, so frustrating!

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

do we get editorial for ABCs?

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

edited

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

    i <= A[i] <= N, so the number on a cell is either that cell or a cell in front of it; you won't go backwards and won't have a test case like 3 1 2 because of this.