搜索专题 ----> DFS 摘要:/* DFS: 1.深度优先搜索是一种枚举所有完整路径以遍历所有情况的搜索方法 2.常用递归(把递归边界F(0)F(1)当成"死胡同",递归式当成岔道口) 3.用栈stack */ …… 文章列表 2020年10月05日 0 点赞 0 评论 468 浏览 评分:9.9
1123: C语言训练-列出最简真分数序列* 摘要:#include <stdio.h>int main(){ for ( int i = 1; i <= 39; i++ ) { if ( (i % 2) != 0 && (i…… 文章列表 2020年10月05日 0 点赞 0 评论 329 浏览 评分:9.9
题目 1122: C语言训练-亲密数 摘要:#include <stdio.h> void main() { int i,o,A,B; for (i=2;i<=3000;i++) { …… 文章列表 2020年10月05日 0 点赞 0 评论 329 浏览 评分:9.9
题目 1143: C语言训练-素数问题 摘要:#include<iostream>using namespace std;int main(){ int n; while(cin>>n) { if(n==0) co…… 文章列表 2020年10月06日 0 点赞 0 评论 264 浏览 评分:9.9
递归算法练习题:正向三角形输出(JAVA版) 摘要:题目:使用递归算法实现如下n行n列个星形字符的正向三角形输出。输出示例:** ** * ** * * ** * * * ** * * * * ** * * * * * *(本示例代码沿用VSCode,…… 文章列表 2020年10月06日 0 点赞 0 评论 1209 浏览 评分:9.9
题目 1155: C语言训练-阶乘和数* 摘要:#include<bits/stdc++.h>using namespace std;int fact(int n);long long int panduan(long int n);int mai…… 文章列表 2020年10月07日 0 点赞 0 评论 568 浏览 评分:9.9
题目 1065: 二级C语言-最小绝对值 摘要:#include<stdio.h>#include<math.h>int main(){ int num1[10],num2[10]; int i,min,rec,t; for(i=…… 文章列表 2020年10月07日 0 点赞 1 评论 388 浏览 评分:9.9
来吧!C++制作的乱斗游戏!(有外挂!但.....没有用!!!) 摘要:```cpp #include #include #include using namespace std; double shanghai[20]={0.6,1.1,2,3.16,5.5,…… 文章列表 2020年10月08日 0 点赞 14 评论 775 浏览 评分:9.9
题目 1081: Infinite Dictionaries 摘要:#include<vector> #include<map> #include<string>#include<cstring>#include<cstdio>#include<cstdlib>usi…… 文章列表 2020年10月08日 0 点赞 2 评论 259 浏览 评分:9.9
题目 1806: [编程基础]输入输出练习之第二个数字 摘要:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; cout<<b<<endl; …… 文章列表 2020年10月08日 0 点赞 0 评论 317 浏览 评分:9.9