上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 没看解答敲了一遍,发现自己题目的理解能力有点差 虽然能实现四叉树的合并但并不能算出像素:-( 然后看答案后又敲了遍 阅读全文
posted @ 2017-08-04 22:22 lan126 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 本来准备模仿前几题建树来做,但是发现判断部分还是要写出答案那样. 阅读全文
posted @ 2017-08-02 07:19 lan126 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1.指针实现 2.数组实现 书上的接口写的太棒了,换了种实现方式,代码基本上没改,比我自己写的接口不知道高到哪里去了. 阅读全文
posted @ 2017-07-28 21:46 lan126 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(142) 评论(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 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 5-8 5-9 Databa 阅读全文
posted @ 2017-07-24 14:47 lan126 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页