AtCoderの065 B – Trained?をC++で解いてみた https://manabisystem.com/atcoder-beginner-contest-065-b-trained/