Submission #56240777 - Toyota Programming Contest 2024#8(AtCoder Beginner Contest 365)

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