练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.
说明
给出一个等差数列的前两项,,求第项是多少。
输入格式
一行,包含三个整数,,。,,。
输出格式
一个整数,即第项的值。
样例
1 4 100
298
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.
给出一个等差数列的前两项a1,a2,求第n项是多少。
一行,包含三个整数a1,a2,n。−100≤a1,a2≤100,0<n≤1000。
一个整数,即第n项的值。
1 4 100
298
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.