Created
September 24, 2013 12:34
-
-
Save gouf/6684060 to your computer and use it in GitHub Desktop.
入力を横着して、計算量と入力を増やす例。
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
bet = %w(300 200 200 300 200 200 2000 2000 1000 3000 1600 400 200 400 600) | |
ret = 4000 | |
p ret / bet.map{|c| Float c}.inject(:+) if not ret == 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment