The Stocks Problem
N transactions were made in a trading market. The minimum value of the profit earned in a single transaction is X, and
the maximum value of the profit earned in a single transaction is Y. You need to find the number of different possible profits
that can be made in N transactions.
Input format
A single line containing three space-separated integers N, X, Y respectively.
Output format
Print the answer to the problem in a single line.
170104008:
ans is (n-2)*(y-x)+1
Answers
Answered by
0
Answer:
A single line containing three space-separated integers N, X, Y respectively.
Output format
Explanation:
find the edge of a cube whose volume is 34.421cm2
Answered by
0
Answer:
A single line containing three space-separated integers N, X, Y respectively.
Output format
E
Similar questions