USACO 2020 January Contest, Platinum Problem 3. Falling Portals
USACO 2020 January Contest, Platinum Problem 3. Falling Portals There are?NN?(2≤N≤2?1052≤N≤2?105) worlds, each with a portal. Initially, world?ii?(for?1≤i≤N1≤i≤N) is at?xx-coordinate?ii, and?yy-coo...