题解列表

筛选

大象喝水问题

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

菲波那契数列

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

数组插入处理

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

jishuqiuhegggggggg

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[6];    int n;    scanf("%d……

分离整数的各个数位

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    while(……

感谢支持,谢谢

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    while……