busitora / camp_weekday_task6 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from intern2019spring/camp_weekday_task6
This project forked from intern2019spring/camp_weekday_task6
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.