连续整数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
连续整数
题目描述
Snuke 有 个整数:。 他将选择其中的 个数,然后将其交给 Takahashi。
有多少种方法可以选择 个连续整数?
输入格式
一行两个用空格分开的整数 。
输出格式
一个整数表示答案。
样例 #1
样例输入 #1
3 2
样例输出 #1
2
样例 #2
样例输入 #2
13 3
样例输出 #2
11
数据范围
20240521集训
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2024-5-21 19:00
- End at
- 2024-5-21 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 16