#B. 练11.3 等差数列末项计算

    Type: RemoteJudge 1000ms 128MiB

练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

20240122-B

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2024-1-22 17:40
End at
2024-1-22 18:40
Duration
1 hour(s)
Host
Partic.
8