Guest User

Untitled

a guest
Dec 9th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. p (3...(1..9).inject(1,:*)*9).select{|a|a==a.to_s.split(//).map{|b|(1..b.to_i).inject(1,:*)}.inject(0,:+)}.inject(0,:+) # 40730
Add Comment
Please, Sign In to add comment