Created
December 14, 2015 00:34
-
-
Save whatalnk/2e7e73ecef01481f9624 to your computer and use it in GitHub Desktop.
AtCoder ARC #046
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
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
AtCoder Regular Contest 046