题解列表

筛选

简单又实用

摘要:参考代码:#include <iostream>using namespace std;int main() {    int n;    cin >> n;    int known_sum = 0……

简单又实用

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

大象喝水问题

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

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

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

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

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

题解 2817: 级数求和

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