题解列表

筛选

c语言代码解决问题

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

2817: 级数求和

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int k;    double s=0;    cin>>k;    ……

级数求和(光头强买冰箱)

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int k;    double s=0;    c……

数组插入处理

摘要:解题思路:可以想象成教室里面有一列,按照高矮顺序排位置,已经排列好了,突然有一个新同学加入,然后我们要把他按照高矮顺序对他进行排座才不会影响其他同学。我们需要加一个座位在最后。然后最高的坐最后然后次高……

菲波那契数列

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

题解 2817: 级数求和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int k;    double s=0;    c……

数1的个数(C++代码)

摘要:参考代码:#include<iostream>using namespace std;int countOnes(int n) {    int count = 0;    for (int i = ……