
数据结构
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数据结构知识框架图
转载:数据结构知识框架图转载 2019-05-07 21:32:54 · 358 阅读 · 0 评论 -
棋盘问题 POJ - 1321(dfs)
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int n, k; const int maxn = 10; char chess[maxn][maxn]; int vis_y[maxn]; //判断该列是否已经有棋子 int sum; void...原创 2019-05-24 16:17:23 · 190 阅读 · 0 评论 -
走迷宫(bfs, 最短路)
Input 10 10 #S######.# ......#..# .#.##.##.# .#........ ##.##.#### ....#....# .#######.# ....#..... .####.###. ....#...G# Output 22 代码: #include<iostream> #include<cstring> #inclu...原创 2019-05-21 20:50:27 · 1035 阅读 · 0 评论 -
CF: Long Number
题目链接 #include<iostream> #include<string> using namespace std; int main() { int n; cin >> n; string a; cin >> a...原创 2019-05-17 00:30:00 · 294 阅读 · 0 评论 -
K Balanced Teams CodeForces - 1133E (Dp)
题意: 给出n个数,选取其中若干个数分别组成至多k组,要求每组内最大值与最小值的差值不超过5,求最后被选上的总人数。 题解: 将a[1∼n]从小到大排序, f[i][j]表示到第i个数为止,已经组成j组,最多可以包含多少个数。 那么,考虑第i个数选取与否,如果不选,那么, 如果选,那么必然是第i个数所在组人数加上前面那些组人数,假设p表示距离...原创 2019-05-26 11:13:49 · 332 阅读 · 0 评论