编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int N; cin>>N; fo…… 题解列表 2023年01月07日 0 点赞 0 评论 148 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main() {int N,all=1;cin>>N;for(int i=1;i<N;i+…… 题解列表 2023年01月07日 0 点赞 0 评论 162 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:为什么我不给sum给与初值就会报错呢?注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() …… 题解列表 2023年01月07日 0 点赞 0 评论 140 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移【也许是一种新思路】 摘要:#include<iostream> using namespace std; int func(int a[],int n,int m); int main() { int n; c…… 题解列表 2023年01月07日 0 点赞 0 评论 211 浏览 评分:9.9
2178迷宫问题 中等BFS+DFS(注释很详细) 摘要:注意:这里的前半段BFS代码直接套用第2177题的代码,稍作修改即可原版在我的这篇题解:<2177走迷宫 简单BFS(注释很详细)>其实BFS像是从一个点,一片一片地拓展出去,而DFS更像是从一个点,…… 题解列表 2023年01月07日 0 点赞 0 评论 263 浏览 评分:9.9
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>using namespace std;int main() { int N; cin>>N; d…… 题解列表 2023年01月07日 0 点赞 0 评论 231 浏览 评分:0.0
2177走迷宫 简单BFS(注释很详细) 摘要:在求解最短路问题时,深度优先搜索会反复经过相同的状态,广度优先搜索只会遍历每个点一遍,所以对于该类问题,深度优先搜索性能不如广度优先搜索好,广度优先搜索适合求解该类问题.显然这道题用BFS更好./*B…… 题解列表 2023年01月07日 0 点赞 0 评论 332 浏览 评分:9.9
2153: 信息学奥赛一本通T1325-循环比赛日程表 摘要:解题思路:分治,ma[x][y]=ma[x][y-k]+k,ma[x][y]=ma[x-k][y]+k,ma[x][y]=ma[x-k][y-k] 要就复制吧,爱就点赞吧!注意事项:参考代码:#in…… 题解列表 2023年01月07日 0 点赞 0 评论 454 浏览 评分:9.8
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,sum,a; cin>>n; int list[100]…… 题解列表 2023年01月06日 0 点赞 0 评论 173 浏览 评分:0.0
角谷猜想(C++简单版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n,n1,n2; cin…… 题解列表 2023年01月06日 0 点赞 0 评论 189 浏览 评分:0.0