box

AtCoder
IDabc180_a
Time2000ms
Memory256MB
Difficulty
We have removed $A$ balls from a box that contained $N$ balls and then put $B$ new balls into that box. How many balls does the box contain now? ## Constraints * All values in input are integers. * $100 \leq N \leq 200$ * $1 \leq A,B \leq 100$ ## Input Input is given from Standard Input in the following format: $N$ $A$ $B$ [samples]
Samples
Input #1
100 1 2
Output #1
101

The box contained $100$ balls. After removing $1$ ball and putting $2$ new balls, it now contains $101$ balls.
Input #2
100 2 1
Output #2
99
Input #3
100 1 1
Output #3
100
API Response (JSON)
{
  "problem": {
    "name": "box",
    "description": {
      "content": "We have removed $A$ balls from a box that contained $N$ balls and then put $B$ new balls into that box. How many balls does the box contain now?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc180_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "We have removed $A$ balls from a box that contained $N$ balls and then put $B$ new balls into that box. How many balls does the box contain now?\n\n## Constraints\n\n*   All values in input are integers.\n...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments