Computer Science, asked by challayeshwanth235, 3 months ago

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 indrajeetchandra80
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 Namandhir2020
0

Answer:

A single line containing three space-separated integers N, X, Y respectively.

Output format

E


170104008: ans is (n-2)*(y-x)+1
Similar questions