Create a gist now

Instantly share code, notes, and snippets.

AtCoder ARC #046
n = gets.chomp.to_i
zorome = [1, 11, 111, 1111, 11111, 111111].product((1..9).to_a)
p zorome[n-1].inject(:*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment