x. 练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

2025年夏令营新人班【查】1

Not Claimed
Status
Done
Problem
60
Open Since
2025-7-4 0:00
Deadline
2025-8-7 23:59
Extension
24 hour(s)