SMU Autumn 2023 Round 2 (Div.1+2) - Problem Solutions
C. Chaotic Construction
When the circular track is unwrapped into a linear sequence from 1 to 2n, placing a barrier at position D corresponds to having barriers at both D and D+n on this line. For any query (x, y), we check whether any barrier falls between x and y, or between x and y+n. We maintain a booolean array to track which positions are ...
Posted on Sun, 10 May 2026 16:35:21 +0000 by Gibb Boy