We will hold AtCoder Beginner Contest 424.
- Contest URL: https://atcoder.jp/contests/abc424
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20250920T2100&p1=248
- Duration: 100 minutes
- Writer: math957963, kyopro_friends, evima
- Tester: sounansya, yuto1115
- Rated range: ~ 1999
- The point values: 100-200-300-425-475-525-625
We are looking forward to your participation!








Why did the title size of this competition become smaller? Strange but cute. ^o^
Maybe because its Japanese name is too long.
which replaced this:
What a small title!What happend?
I'll show you its Japanese Name(((
catch LSY_NY
Good luck!
.
I found this rather difficult for an ABC contest.
How to solve D ?
brute force. I also missed the constraints that n and m <= 7 and tried Greedy. After noticing that bitmask and DP worked.
It is similar to Count tilings ( configuration can be stored using bitmasks)
Again. I think Problem E >> Problem F.
How did you do Problem F ? DSU?
Consider chords as linear segments. So you just have to check if new chord inserted will intersect with already available segments. So if current chord is l,r. Then find minimum (L)left endpoint of any segment that has right endpoint in range(l to r). Similarly check for maximum R.
U can use segtree for it.
You can also use XOR hashing + Fenwick tree. Assign a random value to each endpoint of the segment when you add. If the XOR of a new segment equals zero, that means you can add the current segment. Otherwise it means it intersects with another segment.
Can you share your submission link..
Sure
segment tree.
I think D is harder than E and E is harder than F.
D was easier just Brute Force and seeing the constraints. Btw I took too much time for that problem (T_T).
but that is more natural to think about greedy than dp.
I can't get myself to sketch a brute force solution. Could you please share your approach?
Check this : https://atcoder.jp/contests/abc424/submissions/69491621
Please always remember that unordered_map is unordered, so when you use it,
--mp.end()will NOT return the maximum value in umapOn problem D today, I abused PuLP, a library for optimization problems like (integer) linear programming, which is coincidentally also preinstalled in atcoder's Python environment.
The problem can be modeled as a Set cover problem, by considering cells as sets (of uncovered squares that the cell will cover) and 2x2 uncovered squares as elements in the universe set. Then, by describing the problem as an integer linear program, you can get AC with a sufficiently small runtime.
The accepted submission is here.
Ahah, well done, I didn't know PuLP was preinstalled. I'll definitely abuse this later.
Any Hints / Suggestions for Problem E ?
I was looking for something like binary search.
I solved it greedy way , it worked.
store the stick lengths' with their counts in a ordered container.
While k>0 remove the longest stick (l) min(count,k) add new min(count,k) sticks with length (l/2). update k
After that iterate the container to get xth longest.
How to hack this solution of problem D? link
atcoder_official this user cheated ,he solved problems A,B,C and then use LLM to code remaining problems.(Rank-54).
Problem E can be solved using the fact that we have to print answer close to 1e-9 actual answer. So, we can maintain a frequency map and simulate the operations till the largest element in the map is more than 1e-11. Note that before 100*n operations, the simulation will surely stop. After this, if there are atleast x numbers in the map, then print xth largest number from map, else print 1e-9
funny!
Is F same as or a slightly harder version of ABC338E E-Chords?
Good F