I while ago, I posted this blog. I was wrong.
In CodeRush May '23 (a contest with prizes), problem E was copied from yukicoder. The sample input is also almost the same: the CodeRush organizers just made it weaker by removing the last 2 queries!
Problemsetters, please stop.