010. Points per Game

Codeforces
IDCF10269010
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
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. 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 one decimal number _ppg_, the player's current points per game. This value can be calculated as _p_ / _g_ ## 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_ [samples]
**Definitions** Let $ p \in \mathbb{Z}^+ $ be the total points scored. Let $ g \in \mathbb{Z}^+ $ be the total games played. **Constraints** $ p \geq 1 $, $ g \geq 1 $ **Objective** Compute the points per game: $$ \text{ppg} = \frac{p}{g} $$
API Response (JSON)
{
  "problem": {
    "name": "010. Points per Game",
    "description": {
      "content": "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",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269010"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ p \\in \\mathbb{Z}^+ $ be the total points scored.  \nLet $ g \\in \\mathbb{Z}^+ $ be the total games played.  \n\n**Constraints**  \n$ p \\geq 1 $, $ g \\geq 1 $\n\n**Objective**  \nComput...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments