Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-09-11から1日間の記事一覧

CodeIQ | 『呪いの右仮面』問題 @tbpgr #CodeIQ

概要 『呪いの右仮面』問題 詳細 『呪いの右仮面』問題 を2014/09/11〜2014/10/02まで出題します。 https://codeiq.jp/ace/tbpgr/q1026 どんな問題? 未経験の言語でフィボナッチ数列を出力するプログラムを作成する問題です。 経過情報 日次 総人数 正解者…

Ruby | Numeric | numerator

概要 Numeric#numerator -> Integer 詳細 分子を返却 サンプルコード p 4.numerator p 0.numerator p -4.numerator p 1.5.to_r p 1.5.numerator p 1.5.denominator 出力 $ ruby numeric_numerator.rb 4 0 -4 (3/2) 3 2 参照 http://docs.ruby-lang.org/ja/2.…