Created
August 17, 2012 15:35
-
-
Save myokoym/3379953 to your computer and use it in GitHub Desktop.
Problem040
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! 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