- Thoughts.
- Given 10^2 intervals, do the process 10^5 times, finding intervals that overlap given one interval and calculating a bit.
- If you do it naively, it’s still 10^7, so you can make it…
- Official Explanation
- The above solution was a different solution, written “this one is simpler”.
- Assumed solutions are those that use cumulative sums
This page is auto-translated from /nishio/ARC052B using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.