练11.3 等差数列末项计算

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.

说明

给出一个等差数列的前两项a1a_1a2a_2,求第nn项是多少。

输入格式

一行,包含三个整数a1a_1a2a_2nn100a1−100≤a_1,a2100a_2≤1000<n10000< n ≤ 1000

输出格式

一个整数,即第nn项的值。

样例

1 4 100
298

语法组 8.4~8.6作业 顺序结构

Not Claimed
Status
Done
Problem
44
Open Since
2023-8-4 9:45
Deadline
2023-8-7 0:00
Extension
0 hour(s)