https://teratail.com/questions/357912#reply-488473
配列の方が絶対簡単だと思うがそれでいいのか?