上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 36 下一页
该文被密码保护。 阅读全文
posted @ 2019-12-28 10:57 swsyya 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-28 09:36 swsyya 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-27 22:28 swsyya 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 数据结构实验之查找二:平衡二叉树 AC_Code 1 #include <stdio.h> 2 #include <stdlib.h> 3 struct node{ 4 int data,d; 5 struct node *l,*r; 6 }; 7 8 int max(int x,int y){ 9 阅读全文
posted @ 2019-12-26 19:45 swsyya 阅读(108) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-10 22:10 swsyya 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-03 20:44 swsyya 阅读(1) 评论(0) 推荐(0) 编辑
摘要: P1667 数列(离散化+思维) 对于一个区间【x,y】,设这个区间的总和Σa[i](从i==x 到 i==y)。 那么我们在前缀和(设为sum【i】)的意义上考虑到原操作其实就是sum【x-1】+= S,sum【x】+ S - S,sum【y】 -= S,sum【y+1】+ S - S。 而我们可 阅读全文
posted @ 2019-12-03 11:38 swsyya 阅读(157) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-12-03 09:58 swsyya 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Apple Tree (dfs序+线段树) 1 /*dfs+线段树(单点修改+区间查询)*/ 2 #include "iostream" 3 #include "vector" 4 #include "map" 5 #include "cstdio" 6 #include "cstring" 7 8 阅读全文
posted @ 2019-11-29 17:33 swsyya 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/qq_36368339/article/details/79236467 树通常有多种类型,但其终归是非线性结构,操作起来有时总是那么费时。 例如:POJ 3321给你一棵树,树上每个节点都有1个苹果,然后你对一个节点操作,如果有苹果就拿走,没苹果就 阅读全文
posted @ 2019-11-29 15:34 swsyya 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 36 下一页

回到顶部