Skip to content

Instantly share code, notes, and snippets.

@gouf
Created September 24, 2013 12:34
Show Gist options
  • Save gouf/6684060 to your computer and use it in GitHub Desktop.
Save gouf/6684060 to your computer and use it in GitHub Desktop.
入力を横着して、計算量と入力を増やす例。
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