Simulation - IIOT 2025-26 Round IV | Wrong Algorithm

This was the problem page during the contest. Access the current page here.