【挑戦】(数セミ)エレガントな解答をもとむを解く㉔ https://for-spring.com/others/challenge-24/