分享至
朋友圈
微信
qq空间
qq
微博
复制
(123..327).select{|x| ([x,x*2,x*3].inject([]){|arr,y| arr + y.to_s.split(//)} << '0').uniq.size == 10}