atcoder#AGC015A. [AGC015A] A+...+B Problem
[AGC015A] A+...+B Problem
Score : points
Problem Statement
Snuke has integers. Among them, the smallest is , and the largest is . We are interested in the sum of those integers. How many different possible sums there are?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of the different possible sums.
4 4 6
5
There are five possible sums: , , , and .
5 4 3
0
1 7 10
0
1 3 3
1