Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created December 14, 2015 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/2e7e73ecef01481f9624 to your computer and use it in GitHub Desktop.
Save whatalnk/2e7e73ecef01481f9624 to your computer and use it in GitHub Desktop.
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
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment