0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

データの取り扱い方メモ

Last updated at Posted at 2018-08-19

配列の中に個人認識と数字が入った入力値を受け取った時。
[Federer 6 1 8 5]
フェデラーのグランドスラム優勝回数を取り扱うとして
データを分離かさせてみた。
GS_d = gets.split(" ")
👆player = GS_d[0] 選手名だけ抜く
win = GS_d[1..4].map(&:to_i)
👆優勝回数だけ
all_win = win.inject(:+)
👆優勝合計
みたいに細かく書いていった。
これでCクラスはだいたい解けるかも

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?