- 博客(2)
- 收藏
- 关注
原创 PTA 求二叉树的宽度
typedef struct TreeNode *BinTree; struct TreeNode { int Key; BinTree Left; BinTree Right; }; int Width( BinTree T ) { BinTree p; Queue Q;//队列储存树的结点 int Last, temp_width, max_widt...
2019-10-23 10:40:26 395
原创 7-4 银行排队问题之单窗口“夹塞”版
代码实现: #include<bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include<malloc.h> #include<string.h> using namespace std; const int maxn=10010; map<string,int&g...
2019-10-20 20:07:42 266
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人