We will hold AtCoder Beginner Contest 468.
- Contest URL: https://atcoder.jp/contests/abc468
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20260725T2100&p1=248
- Duration: 100 minutes
- Writer: sounansya
- Tester: kyopro_friends, sheyasutaka
- Rated range: ~ 1999
- The point values: 100-200-300-400-450-500-550
We are looking forward to your participation!








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.
What?
what?!
wHat??!
What??!!
WHAT???
No nesting dolls, meow ( =>ω<= )m
By the way, can anyone here figure out which time zone he's in? QwQ
It is Mountain Standard Time, 1 hour later than California's time zone.
Perhaps we are not in the same time zone.
I agree with you
wtf
I suppose you.
I solved A, C and D.
abcde for me ,B is so easy,why you failed on it??OHHH look!!!!!!! a big error!!!!,this code is absurd but AAAAACCCCCCCC!!!It AC at all random but Wa at simple.so I add some code to AC the simple .ItACed!!——at21:43
why a code that wrong at small,and accepted at big one?????Why?! I show my old oneYour text to link here... It wa at the simple
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!
Congratulations!>w<
You are so strong!
Suppose we have x < y (initially x = 0, and we assign p1 to y). Iterating i from 2 to n: if pi > y, we must perform operation 2 to keep x as minimal as possible; otherwise, we just move to i + 1. Finally, we use the remaining elements only for x and use DP LIS.
thx,I totally understand it now.
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?
You didn't need to use binary search or string hashing. For n <= 10000, doing a linear scan works fine
$$$N \leqslant 10^4$$$, so you can replace two binary searches with just linear search of the first and second indices in your approach.
I use DP. I set an $$$10000 \times 10000$$$ array,but I haven't got a MLE ($$$340$$$ MB) :)
And no TLE ($$$10^8$$$ in the max size of $$$N$$$).
Use Manacher to solve it.
Could someone give the optimal time complexity for Problem D? Thanks, meow~
https://atcoder.jp/contests/abc468/submissions/77868088
it was my first contest .. can anyone tell me how much time after my rating will be visible?
About 1 hour.
ohkie brother
Hey hi can anyone help me out a bit on C :
https://atcoder.jp/contests/abc468/submissions/77865163
Maybe you can use C++
T_T What's the main idea for solving Problem G
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
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$$$
Hoping the best for solving F
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
I am not involved in the banning process, so I do not know anything about it.
Also, appeals regarding bans should be submitted through AtCoder’s contact form, not on the Codeforces Blog: https://atcoder.jp/contact
any hint for 5th problem?
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....
I sovle A to D. It's my best.
Oh no the closest one to AK,I only solved ABCDEF
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.
can you please share your submission? and the similar codeforces problems that you mentioned if you have them? Thanks in advance :)
ban cheater wyc678,he clearly used AI
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.
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.
Yeah I know, but I just wanted my atcoder account displayed in editorial page
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
Sorry for my mistake. I didn't see it. It seems like we have to do something every time
Hey atcoder_official,when will you place the english translation of the editorial?
Hello, can we have the english editorial please, and thank you for the contest.