Git Product home page Git Product logo

one_commits__samples__geometric_progression1's Introduction

one_commits__Samples__geometric_pregression

This is a sample so that I can commit this to the GitHub.

1. Question

初項a{1}, 項数n, 公比r が与えられる。これらを用いて等比数列の一般項によって計算した等比数列を表示するプログラムを組め。 ただし、異常系に関しては考慮しないものとする。

2. Conditions

1≦a{1}≦6
1≦n≦20
0≦r≦6

3. Inputs and Outputs

3.1. Inputs

a{1} n r

一行に初項, 項数, 公比が半角スペースを区切り文字として渡される。

3.2. Outputs

a{1} a{2} a{3} ... a{n}

一行で半角スペースを区切り文字として等比数列a{n}を表示する。

3.3. Examples

3.3.1. Inputs 1

3 4 3

3.3.2. Outputs 1

3 9 27 81

※ Inputs 1 は input1.txt, Output 1 は output1.txt に記述されているとする。

one_commits__samples__geometric_progression1's People

Contributors

yor-jihons avatar

Watchers

 avatar

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.