We will hold AtCoder Beginner Contest 458.
- Contest URL: https://atcoder.jp/contests/abc458
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20260516T2100&p1=248
- Duration: 100 minutes
- Writer: physics0523, sheyasutaka, sounansya
- Tester: Nyaan, KumaTachiRen, harurun4635
- Rated range: ~ 1999
- The point values: 100-200-300-400-450-525-625
We are looking forward to your participation!









Is it just me or is the font of the words in this contest different from other contests
I think so lol
Excuse me, will the new judge have a significant impact on me?
Which new judge are you talking about?
Hi
ciallo
What do you mean?
he means ciallo
Hope I can solve D and E
D is a classic problem.......
Rubbish ABC
yes,it is
orz dmy
no problem
You're right but pls dont talk about it now.
Yes,even there is a similar problem on Luogu,P1168
goodluck
PE makes me want to go play valorant right away
can anyone help me out with D after the contest
may i can help u after the contest xD
Use PBDS along with find_by_order().
You can use 2 stacks to maintain the median in a stream, similar to the Leetcode problem...
I think this problem has appeared in leetcode contest maybe. Anyways, you can solve this using two priority queues, maintain two priority queues, one for the smaller numbers than current median, and one for the larger numbers than current numbers. Let's say current median is 5, and we now add two numbers 2 and 3, now since both are less than 5, so we add them in the left pq, now to find the median, we take out the largest value from the left pq and throw it into the right one until the size of left is just 1 more than the right one, there the largest among the left one is median, similarily if right one has more elements, then we can throw smallest from the right to left until the size is fine.
My solution: https://pastebin.com/vVjwfwpF
This was my solution using the multiset
MathCoder
true
Solved 4 questions in 19 minutes,but rank is 2700+
Horrible Round.
D: https://www.luogu.com.cn/problem/P1168
F: https://www.luogu.com.cn/problem/P9613
Oh, Atcoder original proBlem Contest!
oraingal -> original
qwq
Well, it is possibly impossible to count the amount of origins of F... The are too many of them
OOOOOOOMMMMMMMMMMMGGGGGGGGGGGG! I'm Chinese, had an account on Luogu, but I'm sooooo foolish that I didn't even notice that! I wanna swear (but I can't). P.S. (To all non-Chinese readers) Luogu is in Chinese. If you don't understand the problems ask me. And writing blogs on it is forbidden unless you register your full name and scan the QR code. But there are some good problems in it (including CF ones). You can try to find it by searching https://www.luogu.com.cn/problem/CF(round id)(problem e.g. A~f).
Solid contest!
its my first time solving questions from A to D, is this contest slightly easier than the previous beginner contests? I hope not, I want to believe that I have improved 🙃
Sadly, it is easier, atleast A-D. C was observational and D is standard
😭 😭 😭
However, don't get discouraged, if you are consistant and dedicated, you will automatically get better
in D i did coordinate compression, then used a frequncy array for the elements and each query found the median using binary search on prefix sums (using segment tree) :pray: 100 lines of python, O(n * logn * logn) and still AC :D
You are right but F is another version of abc305_g. It's no doubt that someone is submitting problems which are used in other contests before for ABCs.
I think its almost identical to this G — Banned Substrings https://atcoder.jp/contests/abc305/tasks/abc305_g like damn I have the gist that it gonna be making dp based on automation transition of valid and invalid state then turn that dp into matrix to solve for large n and something, yeah sadly I did not solve it... I don't remember/understand much about ahocorasick automation sufficiently enough to use it in correct ways so I'm having mental breakdance mid compettition trying to remember how the hell I did solve that Banned Substrings before but damn... no luck. 🥀🥀🥀
Anyone who get WA 12 and AC 48 on problem F can try this test case:
3 2 b abc
The answer should be 15625, you might get 15674.
How to solve F?
The problem E is too difficult ! I don't want to see counting-problems anymore !
You need to know how to get number of different solutions to a equation of form x1 + x2 +...xn = r, after that the question becomes pretty simple.
thanks
ABC copies ABC problem
900 solve on F,what a joke.
Any hints for today's problem D.?
Hints:
"sort(it,it)"will TLE.
If you're not lazy, you can use "priority_quene".
If you're lazy, looks like you'll have to use
#include <ext/pb_ds/assoc_container.hpp>and#include <ext/pb_ds/tree_policy.hpp>, as well asusing namespace __gnu_pbds;andfind_by_order.Remember to use
->first.GNU isn't usable in every coding website. And when using dev-c++, don't forget to add
-std=gnu++14.Why is there a discussion about atcode on Codeforces?
Purely because Atcoder doesn't have a blog-writing function :(
My lucky day! My [Atcoder] rating skyrocketed from 294 to 334!
I think this contest is not good.because some problems are in Luogu.
welp, I managed to do the first two... TLE on C and D :(