题解列表

筛选

数组的距离(简单嘞C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<algorithm> #include<cmath> int m……

C++超级简单的基础题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int sum = 1;    int n;    while ……

1018: [编程入门]有规律的数列求和(C语言)

摘要:题目:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13......求出这个数列的前N项之和,保留两位小数。解题思路:设分子为m,分母为n,定义为浮点类型,用两个变量辅助,a用来存储……

最高的分数(c++超简单)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a, n, max;    cin >> n;    m……

打印图案(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){cout<<"  *"<<endl;cout<<" * *"<<endl……