题解列表

筛选

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

摘要:解题思路:注意事项:参考代码:#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 = ……

计算球体积(C++代码)

摘要:参考代码:#include <iostream>#include <cmath>  // 包含cmath头文件来使用pow函数和M_PI常量#include<iomanip>using namespa……

简单又实用

摘要:参考代码:#include <iostream>#include <cmath>  // 包含cmath头文件来使用M_PI常量using namespace std;int main() {    ……