AtCoder Beginner Contest 209
翻译中…
Problem Statement
翻译中…
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
翻译中…
Output
翻译中…
Print the number of integers not less than $A$ and not more than $B$.
翻译中…
样例
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$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。