GithubHelp home page GithubHelp logo

camp_weekday_task6's Introduction

Hi, i'm busitora, software engineer working in Tokyo,Japan.

trophy My Skills

blog

work in progress...!

busitora blog → 技術&ポエム系

camp_weekday_task6's People

Contributors

gaia2013 avatar

Watchers

 avatar

camp_weekday_task6's Issues

平日課題6:Rubyに関する課題(メソッド編)

課題詳細

VERTEXグループは勉強熱心なエンジニアに奨励金を出すために
各メンバーが学習に費やした金額を可視化しようとしています。

メンバーそれぞれの学習費用を計算し
値が高い人から順に名前と金額を出力するRubyプログラムを作成してください。

入力は、data00*.txt(* = 1~3)ファイルから与えられます。
・1 行目に、人数 N が文字列型の整数で与えられます。
・2 行目に、半角英文字で構成される文字列が N 個スペース区切りで与えられます。
・3 行目に、全メンバーが学習した回数 M が文字列型の整数で与えられます。
・4 行目から続く M 行には、 学習した人の名前を表す半角英文字で構成される文字列 と
 学習コストを表す文字列型の整数 がこの順にスペース区切りで与えられます。
・入力は合計で M + 3 行となり、入力値最終行の末尾に改行が1つ入ります。

期待する出力

data001で期待する出力
{"yamaguchi"=>1500, "maeda"=>1000}
data002で期待する出力
{"A"=>3000, "C"=>2000, "B"=>1000}
data003で期待する出力
{"yamaguchi"=>13500, "asano"=>13000, "maeda"=>10000, "fujita"=>8000, "nishino"=>7000, "takahashi"=>6000, "harada"=>5500, "kobira"=>5000, "nakayashiki"=>2000, "ishikawa"=>1500, "sugimoto"=>1000}

受け入れ基準

incentiveRanking.rbが期待どうりに出力すること。

close #1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.