DFS+递归(这题花费我太长时间,仅仅留做纪念,刚接触,大佬勿喷!!!) 摘要:解题思路:DFS注意事项:以后的每一项都要比当前的数大参考代码:#include<iostream>using namespace std;int n;int a[100]={1};void dfs(…… 题解列表 2023年11月13日 0 点赞 4 评论 402 浏览 评分:8.0
2817: 级数求和 摘要:``` #include using namespace std; int main(){ int k; double sn=0; cin>>k; for( int i=1; ;…… 题解列表 2023年11月13日 0 点赞 0 评论 124 浏览 评分:0.0
1147:C语言训练-角谷猜想 摘要:``` #include using namespace std; int a,x; int main(){ cin>>a; for( int i=1;1;i++ ){ if( …… 题解列表 2023年11月13日 0 点赞 0 评论 165 浏览 评分:0.0
链表合并c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int Status;typedef struct lnode{ int…… 题解列表 2023年11月13日 0 点赞 0 评论 352 浏览 评分:9.9
2812: 球弹跳高度的计算 摘要:``` #include using namespace std; double x,y,z,sum,h; int main(){ cin>>h; for( int i=1;i…… 题解列表 2023年11月13日 0 点赞 0 评论 234 浏览 评分:9.9
2749: 你好,世界! 摘要:#Hello World! ##参考代码: ``` #include using namespace std; int main(){ string a="Hello",b="World…… 题解列表 2023年11月13日 0 点赞 0 评论 204 浏览 评分:0.0
判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if(a>=10 &&…… 题解列表 2023年11月13日 0 点赞 4 评论 390 浏览 评分:4.7
2880: 计算鞍点 摘要:#计算鞍点 ##参考代码: ``` #include using namespace std; int arr[1000][1000],sum=0; int main(){ for(i…… 题解列表 2023年11月13日 0 点赞 0 评论 158 浏览 评分:0.0
2878: 计算矩阵边缘元素之和 摘要:#计算矩阵边缘元素之和 ##参考代码 ``` #include using namespace std; int arr[100][100]; int main(){ int n,m…… 题解列表 2023年11月13日 0 点赞 0 评论 397 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:``` #include using namespace std; int m,n,x,yin,bei; int main(){ cin>>m>>n; x=m*n; for( in…… 题解列表 2023年11月13日 0 点赞 0 评论 199 浏览 评分:0.0