#P56. 练11.3 等差数列末项计算
练11.3 等差数列末项计算
Description
Given the first two terms and of an arithmetic sequence, determine the th term.
Input Format
Input consists of a single line with three integers , , and . The constraints are and .
Output Format
Output a single integer representing the value of the th term.
Sample
1 4 100298