Submission #52154109 - Toyota Programming Contest 2024#4(AtCoder Beginner Contest 348)

AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online.