atcoder_official's blog

By atcoder_official, history, 2 days ago, In English

We will hold AtCoder Beginner Contest 360.

We are looking forward to your participation!

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

Hopefully my rating doesn't rotate 360 degrees in this contest

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

Why ABC is scheduled on Sunday instead of Saturday?

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

    There's ARC on Saturday.

    Don't know their reason but for me makes sense having the ARC on Saturday instead of doing it right before div1+div2 round on Sunday.

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

    土曜日に開催される「第五回日本最強プログラム学生セレクション-プレ選考-」がABCの時間を割いてくれた。

  • »
    »
    32 hours ago, # ^ |
      Vote: I like it -10 Vote: I do not like it

    ABC is on Saturday in China......

»
2 days ago, # |
  Vote: I like it -11 Vote: I do not like it

»
43 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Where can one get the test cases for the AtCoder Beginner Contests? The test cases seem missing after ABC 355 on the Dropbox link they provided on their site.

  • »
    »
    43 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    They are updated late, probably after 1 month ig after the contest.

»
35 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

excited!

»
9 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Why did this contest comes in Sunday.But ABC361 is on Saturday.

  • »
    »
    9 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    ABC rounds are usually held on Saturdays but this time ARC round was scheduled on Saturday hence this was scheduled on Sunday.

»
7 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

B is the worst problem I have ever seen.

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

Problem FG got wrong answer in 4 test cases in total, but none of them got accepted.

Can anyone tell me why my solution of F get wa*3 ??

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

is there $$$O(1)$$$ solution for problem E?

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

    I have $$$O(log(k))$$$ (which come from power).

    The formula is $$$\frac{\frac{n(n + 1)}{2}a + (n^2 - 2n)^{k}}{n^{2k}}$$$ where $$$a=\frac{n^{2k} - (n^2 -2n)^{k}}{n}$$$. Actually number of cases, that the black ball end up at position $$$i$$$ is $$$a$$$ if $$$i$$$ is not $$$1$$$. For $$$1$$$, it is $$$a + (n^2 - 2n)^{k}$$$. Since the number of possible cases for doing the operation $$$k$$$ times is $$$n^{2k}$$$, we can get the mentioned value of $$$a$$$.

  • »
    »
    104 minutes ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    I got $$$\mathbb{E}[\text{X}] = \left(1 - \frac{2}{N}\right)^k + \left(1-\left(1 - \frac{2}{N}\right)^k \right)\left(\frac{N+1}{2}\right)$$$

    I first solved for $$$k=1$$$, then for the general case, assume $$$a_{t,k}$$$ be the probability of reaching $$$t$$$ in $$$k$$$ operations, then got the recursion (inspired from calculations of $$$k=1$$$ case) : $$$a_{t,k} = \frac{2}{N^2} + \left(1-\frac{2}{N}\right)(a_{t,k-1})$$$ with initial conditions as $$$a_{t,0} = 0$$$, if $$$t \neq 1$$$; $$$a_{t,0} = 1$$$ else.

    Now, writing the expression of the expectation and the probability derived from above, remains long amounts of simplifications T_T.

»
6 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

why my solution for problem b is getting wrong. Any test cases

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

D not having a single sample with unsorted X was unnecessarily evil IMO.

  • »
    »
    6 hours ago, # ^ |
      Vote: I like it -6 Vote: I do not like it

    please see my comment

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

    I was about to submit, luckily went back to confirm this from the constraints!

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

Can somebody tell me why am i getting 3wr on F?

https://atcoder.jp/contests/abc360/submissions/55102148

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

Ok, I figured D is reduced to finding the number of intersecting interval pairs. Then I tried to sweep maintaining the current number of open intervals (+1 at a start, -1 at an end+1), but how do I make sure I don't over-count the same interval pair?

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

I need solution of problem F please.

»
103 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

Is it unrated?

»
95 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

For G, wouldn't just setting $$$A[0] = 0$$$ and then finding the LIS work? Or am I missing something?