088. Radioactivity

Codeforces
IDCF10269088
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
Radioactivity You're trying to determine how many neutrons are in a certain radioactive isotope. You know how many protons are in the isotope, and you know the isotope's mass number. The mass number of an isotope is defined as the number of protons plus the number of neutrons. Given the number of protons and the mass number, figure out how many neutrons are in the radioactive isotope. The only line of input contains two space-separated integers $p$ and $m$ ($p$ <= $m$), representing the number of protons in the isotope, and the mass number of the isotope, respectively. Output a single positive integer $n$: the number of neutrons in the radioactive isotope. ## Input The only line of input contains two space-separated integers $p$ and $m$ ($p$ <= $m$), representing the number of protons in the isotope, and the mass number of the isotope, respectively. ## Output Output a single positive integer $n$: the number of neutrons in the radioactive isotope. [samples]
**Definitions** Let $ p \in \mathbb{Z} $ be the number of protons. Let $ m \in \mathbb{Z} $ be the mass number. Let $ n \in \mathbb{Z} $ be the number of neutrons. **Constraints** 1. $ 1 \leq p \leq m $ **Objective** Compute: $$ n = m - p $$
API Response (JSON)
{
  "problem": {
    "name": "088. Radioactivity",
    "description": {
      "content": "Radioactivity You're trying to determine how many neutrons are in a certain radioactive isotope. You know how many protons are in the isotope, and you know the isotope's mass number. The mass number ",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269088"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Radioactivity\n\nYou're trying to determine how many neutrons are in a certain radioactive isotope. You know how many protons are in the isotope, and you know the isotope's mass number. The mass number ...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ p \\in \\mathbb{Z} $ be the number of protons.  \nLet $ m \\in \\mathbb{Z} $ be the mass number.  \nLet $ n \\in \\mathbb{Z} $ be the number of neutrons.\n\n**Constraints**  \n1. $ 1 \\leq...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments