010. Points per Game

010. Points per Game
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Your favorite basketball player is the leading scorer in the country, and you want to know exactly how good they are. Points per game is measured as points divided by games played, and is used to rank leading scorers in basketball.
Input
The first line of input contains a positive integer p indicating the total points scored by the player so far during the season. The second line of input contains a positive integer g indicating the total games played by the player so far during the season.
Output
Output one decimal number ppg, the player's current points per game. This value can be calculated as p / g
Examples
input
Copy
78
7
output
Copy
11.142857142857142
input
Copy
89
15
output
Copy
5.933333333333334

Comments

Popular posts from this blog

MySQL Multi Source Master Slave Replication using GTID

Access and modify all the resources of our Wiki.js using WikiJS API

How to pass parameters in webhook?