等差数列末项计算
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 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.