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

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

筛选

公式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……

等差数列末项计算

摘要:解题思路:   根据高中学过的等差数列的知识,求公差,带入公式即有思路注意事项:参考代码:#include<stdio.h>int main(){    int a,b,d,n,N;    scanf……

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);      ……

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

摘要:解题思路:等差数列通项公式注意事项:先算公差参考代码:a1, a2, n = map(int, input().split()) d = a2-a1 an = a1+(n-1)*d print(……