数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<10;i++){ …… 题解列表 2023年07月11日 0 点赞 0 评论 532 浏览 评分:0.0
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include< bits/stdc++.h >int main(){ char a[10]; int i; …… 题解列表 2023年07月12日 0 点赞 0 评论 508 浏览 评分:0.0
自由下落的距离计算 解题思路:首先需要清楚输入和输出分别是什么输入:小球自由落体的高度M;以及小球反弹的次数N;输出:小球第N次反弹的高度,小球在第N次反弹经过的总路程。第一次反弹路程:s1=M反弹高度:h1=M/2;第二次反弹s2=s1+h1*2h2=h1/2;第三次反弹s3=s2+h2*2h3=h2/2;....以此 题解列表 2023年07月12日 0 点赞 0 评论 718 浏览 评分:0.0
简单又实用 摘要:```cpp #include #include using namespace std; int main() { int N, M; cin >> N >> M; …… 题解列表 2023年07月12日 0 点赞 0 评论 834 浏览 评分:0.0
大象喝水问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define pi 3.14159int main(){ int a,b,c,d; scanf("%d %d",&a,&…… 题解列表 2023年07月12日 0 点赞 0 评论 573 浏览 评分:0.0
计算球体积(C++代码) 摘要:参考代码:#include <iostream>#include <cmath> // 包含cmath头文件来使用pow函数和M_PI常量#include<iomanip>using namespa…… 题解列表 2023年07月12日 0 点赞 0 评论 937 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,n ; cin>>a>>n; …… 题解列表 2023年07月12日 0 点赞 0 评论 556 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; int n; cin…… 题解列表 2023年07月12日 0 点赞 0 评论 579 浏览 评分:0.0
菲波那契数列 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int k, a = 1, b = 1, c = 1; …… 题解列表 2023年07月12日 0 点赞 0 评论 614 浏览 评分:0.0
数组插入处理 解题思路:可以想象成教室里面有一列,按照高矮顺序排位置,已经排列好了,突然有一个新同学加入,然后我们要把他按照高矮顺序对他进行排座才不会影响其他同学。我们需要加一个座位在最后。然后最高的坐最后然后次高的依次往后坐,只有后面的同学留出位置这样新来的同学才有位置坐下。 题解列表 2023年07月12日 0 点赞 0 评论 546 浏览 评分:0.0