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









Happy spring festival!
Happy New Year!
Have fun!
Screencast: https://youtu.be/I-7cw-uSXig (solving all problems)
Can you explain your solution and time complexity for prob G?
It is O(N*sqrt(N)). At any point, we keep track of all x whose counts are atleast x and the xth element starting from the current index i. The maximum number of such x can be atmost O(sqrt(N-i+1)) since 1+2+..x <= N-i+1 or x <= sqrt(2*(N-i+1))
Impressive. What does dp[i] imply?
dp[i] is the number of ways to select 221 sequence starting at i given you have just selected i-1.
Based on your impressive solution i optimized it to O(n),pretty obvious for you ik but in case someone else is wondering. https://atcoder.jp/contests/abc446/submissions/73540093
Has anyone solved the Omelette Restaurant using a Deque...?
I got 23 AC and 7 WA. I'm very curious about those 7!
I solved it, but I didn't use any
deque<int>structure. Here is my submission: Link to codehere's my code:
Solved $$$F$$$ 13 min after contest ended :(
Good problems, thanks for the round math957963 sheyasutaka physics0523 sounansya and all testers.
Any body know how to get rating more than 1400, and what are tricks are there ?
Can someone please help? I am trying to solve problem F, this is my code. It passes 54/55 cases and I don't know why it fails one.
A counterexample would be nice please
I find this example hacked your code:
Input: 5 9 4 5 4 3 3 4 1 2 2 5 4 5 5 4 5 3 4 3
Expected Output: 1 1 -1 -1 0
Your output: 1 1 -1 1 0
I hope this can help you.
If we care about distinct subsequences based on indecies as well in G, is what's better than $$$O(N^2)$$$ ?