Блог пользователя atcoder_official

Автор atcoder_official, история, 6 недель назад, По-английски

We will hold AtCoder Beginner Contest 468.

We are looking forward to your participation!

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
6 недель назад, скрыть # |
 
Проголосовать: нравится -42 Проголосовать: не нравится

So sorry, but waking up at 6am to do this kind of stuff is too tough. CF is at 8:30 am so that's better marginally.

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I suppose you.

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I solved A, C and D.

»
6 недель назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Can anyone prove my F submission, I only wanted to have a try and don't expect it to pass. BUT IT PASSED! And I even don't know why my code is correct.Thanks so much!

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I solved $$$D$$$ by fixing mid point of a palindrome, say $$$i$$$, and then find first index of mismatch with binary search and string hashing, and then find second index of mismatch, and add $$$second - i + 1$$$ to $$$ans$$$. But implementation too hard :(

Is there an easier way?

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Could someone give the optimal time complexity for Problem D? Thanks, meow~

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

it was my first contest .. can anyone tell me how much time after my rating will be visible?

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hey hi can anyone help me out a bit on C :

https://atcoder.jp/contests/abc468/submissions/77865163

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

T_T What's the main idea for solving Problem G

  • »
    »
    6 недель назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +3 Проголосовать: не нравится

    Let pos[i] be the position of i, then with s[k] = 'o' we have prefix_max[k]-prefix_min[k]+1 = k, otherwise prefix_max[k]-prefix_min[k]+1 > k. Let dp[k] be the number of permutaions satisfying the first k conditions, but s[k] = 'o', Find the nearest j < i and s[j] = 'o', then subtract the contribution of dp[k] from j+1 to i-1, k is the first position that s[i] must be 'o', consider first k elements as one block and shuffle it with i — k remaing position.See my code

  • »
    »
    6 недель назад, скрыть # ^ |
     
    Проголосовать: нравится +3 Проголосовать: не нравится

    If you solve for the case $$$\text{o}\text{x}^k\text{o}$$$ which I call $$$g_k$$$ then you can multiply $$$g_k$$$ for each gap between o's of length $$$k$$$ in the final string since you can treat each sub-segment as an atomic unit when picking surrounding positions. To calculate $$$g_k$$$ remove all possible prefixes $$$\text{o}\text{x}^i\text{o}$$$ for $$$i \lt k$$$

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hoping the best for solving F

»
6 недель назад, скрыть # |
 
Проголосовать: нравится -54 Проголосовать: не нравится

Why was my account aaa_Pigeon banned? I didn’t even participate in this ABC.

If you believe I cheated in a previous ARC, I have a recording of my participation in ARC223: https://pixeldrain.com/u/AHjiKtsr

maspy

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

any hint for 5th problem?

  • »
    »
    6 недель назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Think of finding the sum of all subarrays of a particular size, you may need some precomputations for that. Then the task is easy because we can just add that sum divided by that size i for instance with some modular mathematics in hand....

»
6 недель назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

I sovle A to D. It's my best.

»
6 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Oh no the closest one to AK,I only solved ABCDEF

»
5 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I think problem F is very educational.

It is a two-dimension dp, and the trick is that we use a loop for one dimension, while using a segment tree to maintain the other dimension. There are several similar problems at codeforces as well.

»
5 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

ban cheater wyc678,he clearly used AI

»
5 недель назад, скрыть # |
 
Проголосовать: нравится -18 Проголосовать: не нравится

maspy can I write editorial for problem E, if it is different than author's solution, my time complexity is O(n) if you are interested.

  • »
    »
    5 недель назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    AtCoder allows users to post editorials, but there is a minimum rating requirement. If I remember correctly, you need a rating of at least 2000 to write an editorial for an ABC.

    You are also free to post an editorial somewhere other than the AtCoder contest page, including on this Codeforces blog.

»
5 недель назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

Many people have used incorrect solutions for problem F. First, find all the prefixes max, and then perform LIS on the remaining ones using the original data. However, this set of data can be disabled: input: 13 5 6 7 8 1 2 13 9 10 11 12 3 4 expected output: 12

but the wrong solution will give 11 as its answer

»
5 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hey atcoder_official,when will you place the english translation of the editorial?

»
5 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hello, can we have the english editorial please, and thank you for the contest.