>>206
C#で>>224とは別の解法
https://ideone.com/fvtgZa