Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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(:*)
@whatalnk

This comment has been minimized.

Copy link
Owner Author

commented Dec 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.