#A. A - Counting

    传统题 1000ms 256MiB

A - Counting

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Counting

Score : $100$ points

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:

AA BB

Output

Print the number of integers not less than $A$ and not more than $B$.


2 4
3

We have three integers not less than $2$ and not more than $4$: $2$, $3$, $4$, so we should print $3$.


10 100
91

3 2
0

We have no integers not less than $3$ and not more than $2$, so we should print $0$.

2025寒假ATC码力训练营第九次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-2-1 13:00
结束于
2025-2-1 14:30
持续时间
1.5 小时
主持人
参赛人数
5