2773: 计算线段长度 摘要:解题思路:注意事项:要按题目给的顺序写参考代码:#include<bits/stdc++.h>using namespace std;yaybint main(){ double xa, xb,…… 题解列表 2023年12月05日 0 点赞 0 评论 441 浏览 评分:9.9
Yu:2913整数去重 摘要:### 解析 **注意:**题目数据范围10~100,这样我们可以用a[i]的值代表i的个数。如果为一,表示只出现过一次,这种状态下输出。0表示未出现过,1以上表示出现多次。 把数组定义为全局变量…… 题解列表 2023年12月05日 0 点赞 0 评论 389 浏览 评分:9.9
编写题解 2809: 菲波那契数列 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int k,b=1,c=1,s=0; cin>>k; for(int i…… 题解列表 2023年12月05日 0 点赞 0 评论 332 浏览 评分:0.0
题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a/b…… 题解列表 2023年12月05日 0 点赞 0 评论 545 浏览 评分:9.9
题解 2751: 超级玛丽游戏 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"<…… 题解列表 2023年12月05日 0 点赞 0 评论 349 浏览 评分:8.5
题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double xa,ya,xb,yb; cin…… 题解列表 2023年12月05日 0 点赞 0 评论 273 浏览 评分:0.0
利用C++完成数组插入处理 摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int …… 题解列表 2023年12月04日 0 点赞 0 评论 442 浏览 评分:8.0
1231: 杨辉三角 摘要: #include using namespace std; const int N=1000; int a[N][N]; int main() { …… 题解列表 2023年12月04日 0 点赞 0 评论 788 浏览 评分:9.9
整数的个数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c=0,d=0,e=0; cin>>a; …… 题解列表 2023年12月04日 0 点赞 0 评论 308 浏览 评分:6.5
2806人口增长问题题解(c++) 摘要:#include using namespace std; int main(){ int b; double a; cin>>a>>b; for(int i=1;i…… 题解列表 2023年12月04日 0 点赞 0 评论 388 浏览 评分:2.0