Giter Site home page Giter Site logo

invest-game's Introduction

invest-game

game for invest

CN:

投资游戏

输入,每个人的选项列表

输出,每个人的收益状况

输出,投资几人

输出,不投资几人

输出,投资的人收益情况,绝对值

输出,不投资的人的收益情况,绝对值

规则:

这是一个投资游戏,每人有1000元,每人可以选择投资还是不投资,投资的至少投入1元,不投资的不用投入

当投资的人占总人数的90%,投资的人获得10%的收益。如果不到,那么投资人的投入的钱一分也拿不回来。

自己写输入的格式,可以用对象,也可以用文本

自己限定人数(不小于10人)。10局后给出每个人的状况

要求: 让所有的测试通过

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.