2775: 等差数列末项计算 摘要:解题思路:注意事项:b比a大所以先写b,最后加a。参考代码:#include <iostream>using namespace std;int main(){ int a,b,n; ci…… 题解列表 2023年12月05日 0 点赞 0 评论 269 浏览 评分:9.9
2773: 计算线段长度 摘要:解题思路:注意事项:要按题目给的顺序写参考代码:#include<bits/stdc++.h>using namespace std;yaybint main(){ double xa, xb,…… 题解列表 2023年12月05日 0 点赞 0 评论 342 浏览 评分:9.9
Yu:2913整数去重 摘要:### 解析 **注意:**题目数据范围10~100,这样我们可以用a[i]的值代表i的个数。如果为一,表示只出现过一次,这种状态下输出。0表示未出现过,1以上表示出现多次。 把数组定义为全局变量…… 题解列表 2023年12月05日 0 点赞 0 评论 298 浏览 评分: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 评论 250 浏览 评分:0.0
题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a/b…… 题解列表 2023年12月05日 0 点赞 0 评论 465 浏览 评分:9.9
题解 2751: 超级玛丽游戏 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"<…… 题解列表 2023年12月05日 0 点赞 0 评论 255 浏览 评分:8.5
题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double xa,ya,xb,yb; cin…… 题解列表 2023年12月05日 0 点赞 0 评论 173 浏览 评分:0.0
利用C++完成数组插入处理 摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int …… 题解列表 2023年12月04日 0 点赞 0 评论 353 浏览 评分:8.0
1231: 杨辉三角 摘要: #include using namespace std; const int N=1000; int a[N][N]; int main() { …… 题解列表 2023年12月04日 0 点赞 0 评论 681 浏览 评分: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 评论 258 浏览 评分:6.5