We will hold AtCoder Regular Contest++ 221.
- Contest URL: https://atcoder.jp/contests/arc221
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20260531T2100&p1=248
- Duration: 150 minutes
- Writer: tatyam, sounansya, toam, noya2, hirayuu_cf
- Rated range: 1600 — 2999
- Point Values: 600-800-800-800-1000
We are looking forward to your participation!








Hope for an amazing contest!
Hope for an amazing contest! And hope that I can solve a problem.
I don't believe that so many people could solve problem A, so I hope AT will strengthen its scrutiny to AI.
Oh,I'm wrong. I accepted it after one hour of thinking after the contest...
How do setters come up with D??????
Ok editorial's solution seems more rational to come up with than mine (result is isomorphic).
When I saw N = 1e9, I immediately knew brute force was not invited to this contest.