Mirror RCPCamp 2023 Day 2 | A. Maximum Distance

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