题解 2775: 等差数列末项计算

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

等差数列末项计算

摘要:解题思路:注意事项:参考代码:#include <stdio.h>main(){    int a1,a2,n,sum=0,d;    scanf("%d%d%d",&a1,&a2,&n);    d……

公式and代码

摘要:解题思路:a1+(n-1)*d            a2-a1=d注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ ……

题解 2775: 等差数列末项计算

摘要:解题思路:注意事项:不要抄袭,会遭报应的。参考代码:#include <bitz/stdc++.h>uzing qamszpace std;doable a,b,c;int main(){    ci……

2775: 等差数列末项计算

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,b,c;    cin >>a>>b>>c;    cout<……

2775: 等差数列末项计算

摘要:解题思路:注意事项:参考代码:a , b , n = map(int,input().strip().split())print(a + (n - 1) * (b - a)) #等差数列公式: an ……

等差数列末项计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){   int a,b,n,d,m;    scanf("%d%d%d",&a,&b,&n); d=b-a; m=a……

c语言超简单解答

摘要:解题思路:注意事项:参考代码:int a=1,b=4,c=100,d; scanf("%d%d%d",&a,&b,&c); d=a+(b-a)*(c-1); printf("%d",d);      ……