热心市民小喷
热心市民小喷
全部文章
分类
BFS(2)
DFS(2)
pat乙级(69)
pat甲级(16)
栈,队列(1)
浙工大(3)
问题小技巧(2)
随笔(8)
题解(2)
归档
标签
去牛客网
登录
/
注册
谁人打的太极
TA的专栏
99篇文章
2人订阅
代码学习笔记
99篇文章
1874人学习
全部文章
(共105篇)
PAT1091
来自专栏
1091 Acute Stroke (30分) One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Give...
BFS
2020-05-01
1
819
PAT甲级1086(算法笔记8.1DFS)
来自专栏
1086 Tree Traversals Again (25分) An inorder binary tree traversal can be implemented in a non-recursive way with a s...
DFS
树的遍历
2020-04-29
1
655
PAT甲级1103(算法笔记上机8.1DFS)
来自专栏
1103 Integer Factorization (30分) The K−P factorization of a positive integer N is to write ...
DFS
2020-04-29
1
931
PAT甲级1053(算法笔记9.3)
来自专栏
1053 Path of Equal Weight (30分) Given a non-empty tree with root R, and with weight Wi assigned to each tree n...
DFS
树的遍历
2020-04-28
1
636
PAT甲级1020(算法笔记9.2.4)
1020 Tree Traversals (25分) Suppose that all the keys in a binary tree are distinct positive integers. Given the post...
二叉树
队列
BFS
2020-04-28
1
568
算法笔记8.2.2
来自专栏
#include<iostream> #include<string> #include<vector> #include<queue> using namespace std; const int maxn&n...
最优解
BFS
2020-04-27
0
597
算法笔记8.2.1
提示: #include<iostream> #include<queue> using namespace std; #define maxn 100 struct nod { int x, y; ...
BFS
2020-04-27
0
554
算法笔记8.1.2
来自专栏
#include<iostream>//n个数中取K个数,要求k个数的和=x,如果有多种方案,取方案中,每个数平方后的和的最大的那个方案 #include<vector> using namespace std; #define maxn&nbs...
DFS
2020-04-27
0
532
算法笔记8.1.1
来自专栏
#include<iostream>//n个物品,各有价格和体积,背包容量V,求装满背包的最大价值装法 using namespace std; #define maxn 30 int a[maxn],b[maxn]; int ...
DFS
2020-04-27
0
534
简单计算器
读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 输入描述: 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的...
括号匹配
栈
队列
2020-04-27
1
571
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页