Counting

AtCoder
IDabc209_a
Time2000ms
Memory256MB
Difficulty
How many integers not less than $A$ and not more than $B$ are there? ## Constraints * $1 \leq A \leq 100$ * $1 \leq B \leq 100$ * $A$ and $B$ are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
2 4
Output #1
3

We have three integers not less than $2$ and not more than $4$: $2$, $3$, $4$, so we should print $3$.
Input #2
10 100
Output #2
91
Input #3
3 2
Output #3
0

We have no integers not less than $3$ and not more than $2$, so we should print $0$.
API Response (JSON)
{
  "problem": {
    "name": "Counting",
    "description": {
      "content": "How many integers not less than $A$ and not more than $B$ are there?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc209_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "How many integers not less than $A$ and not more than $B$ are there?\n\n## Constraints\n\n*   $1 \\leq A \\leq 100$\n*   $1 \\leq B \\leq 100$\n*   $A$ and $B$ are integers.\n\n## Input\n\nInput is given from Stand...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments