会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lan126
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
2017年8月4日
第六章部分例题
摘要: 没看解答敲了一遍,发现自己题目的理解能力有点差 虽然能实现四叉树的合并但并不能算出像素:-( 然后看答案后又敲了遍
阅读全文
posted @ 2017-08-04 22:22 lan126
阅读(124)
评论(0)
推荐(0)
2017年8月2日
第六章部分例题
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int const maxn=10000; 8 int sum[maxn]; 9 10 11 void built(int p) 12 { 13 int v; 14 cin>>v; 15 16 if(v==-1)...
阅读全文
posted @ 2017-08-02 17:26 lan126
阅读(101)
评论(0)
推荐(0)
第六章习题
摘要: 本来准备模仿前几题建树来做,但是发现判断部分还是要写出答案那样.
阅读全文
posted @ 2017-08-02 07:19 lan126
阅读(141)
评论(0)
推荐(0)
2017年7月30日
第六章部分例题
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 const int maxn=100000; 7 int n; 8 int postorder[maxn],inorder[maxn]; 9 int lh[maxn],rh[maxn]; 10 11 12 bool read_list(int* a) 13 { 14...
阅读全文
posted @ 2017-07-30 17:37 lan126
阅读(139)
评论(0)
推荐(0)
2017年7月28日
第六章例题二叉树层次遍历
摘要: 1.指针实现 2.数组实现 书上的接口写的太棒了,换了种实现方式,代码基本上没改,比我自己写的接口不知道高到哪里去了.
阅读全文
posted @ 2017-07-28 21:46 lan126
阅读(264)
评论(0)
推荐(0)
2017年7月27日
第六章例题
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int btr[1<<20]; 7 8 9 int main() 10 { 11 int D,I; 12 13 while(scanf("%d%d",&D,&I)==2) 14 { 15 m...
阅读全文
posted @ 2017-07-27 21:33 lan126
阅读(141)
评论(0)
推荐(0)
2017年7月25日
第六章部分例题
摘要: 6-4 自己先敲了一遍虽然可以完成书上的功能但是漏洞百出 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 5 using namespace std; 6 7 const int maxn=100000+100; 8
阅读全文
posted @ 2017-07-25 22:22 lan126
阅读(147)
评论(0)
推荐(0)
第六章例题
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 vector vt; 8 stack st; 9 10 int main() 11 { 12 vt.clear(); 13 14 int n; 15 cin>>n; 16 17 for(int i...
阅读全文
posted @ 2017-07-25 15:29 lan126
阅读(126)
评论(0)
推荐(0)
2017年7月24日
第五章例题
摘要: 5-8 5-9 Databa
阅读全文
posted @ 2017-07-24 14:47 lan126
阅读(109)
评论(0)
推荐(0)
2017年7月22日
第五章Biginteger部分实现
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 struct BigInteger 8 { 9 static const int BASE=100000000; 10 static const int WIDTH=8; 11 12 vector...
阅读全文
posted @ 2017-07-22 21:06 lan126
阅读(126)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
公告