Skip to content

Instantly share code, notes, and snippets.

@myokoym
Created August 17, 2012 15:35
Show Gist options
  • Save myokoym/3379953 to your computer and use it in GitHub Desktop.
Save myokoym/3379953 to your computer and use it in GitHub Desktop.
Problem040
#! ruby
d = ""
0.upto(0 / 0.0) do |i|
d << i.to_s
break if d.size > 10 ** 6
end
p 0.upto(6).inject(1) {|v, i| v * d[10 ** i].to_i }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment