#include
#include
#include
#include
using namespace std;
const int maxn=40005;
const int bw=20000;
#define lson(x) ((x)<<1)
#define rson(x) (((x)<<1)|1)
int lc[maxn<<2],rc[maxn<<2],ad[maxn<<2],nd[ma...
分类:
其他好文 时间:
2015-05-04 18:11:26
阅读次数:
102
DescriptionInputOutputSample Input输入1:21 2 3输入2:512 21 3 32 4 42 5 5Sample Output输出1:62 1输出2:322 1 4 5 3Data Constraint首先Ans=dep[i]+dep[p[i]]-2*dep[lc...
分类:
其他好文 时间:
2015-05-04 15:08:38
阅读次数:
127
题目描述分治思想,递归求解。先建树再后序遍历:#include #include #include using namespace std;char pre[26], mid[26];typedefstruct _tree { char c; _tree *lc, *rc; _tree(char c...
分类:
其他好文 时间:
2015-05-04 01:10:02
阅读次数:
219
package com.lc.igou.util;import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;public class MD5Util { public static String ge...
分类:
编程语言 时间:
2015-05-03 20:38:17
阅读次数:
107
1.查看当前模式 httpd -lC:\wamp\bin\apache\Apache2.2.17\bin>httpd -lCompiled in modules: core.c mod_win32.c mpm_winnt.c http_core.c mod_so.c2.修改apache/c...
分类:
其他好文 时间:
2015-05-01 07:07:00
阅读次数:
193
在LC项目中,根据客户需求,需要封装CO11N,做一个Dialog程序,只对最后一道工序报工,感觉很简单,用BDC方式做了一版,运行期间,问题百出,后来找到函数BAPI_PRODORDCONF_CREATE_TT,解决了问题,代码如下,分享一下,资源共享。...
分类:
Windows程序 时间:
2015-04-28 21:05:25
阅读次数:
1242
在英文环境(LC_CTYPE=en_US.UTF-8)下安装,可按如下配置: 首先,执行 sudo apt-get install fcitx-pinyin im-switch 然后,执行 im-switch -s fcitx -z all_ALL 最后,在“System Settin...
分类:
系统相关 时间:
2015-04-24 06:40:07
阅读次数:
171
原题链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1112 1 #include 2 #include 3 #include 4 #include 5 #define lc rootsize + ...
分类:
其他好文 时间:
2015-04-23 23:12:42
阅读次数:
211
记录在使用DEV Express中遇到的所有问题及解决方案问题1:将Dev11升级到Dev14解决方案:将解决方案中原有Dev引用删除,重新添加必须的Dev14引用,问题解决;问题2:LC.exe已退出,代码-1原因:在升级dev组件时,产生的错误,组件错误解决方案:删除properties文件夹下...
分类:
其他好文 时间:
2015-04-23 13:08:21
阅读次数:
131
裸题嘛。。
先考虑一条线段上如何查询颜色段数,只要对每个线段树节点多维护一个左颜色和右颜色,然后合并的时候sum[x]=sum[lc]+sum[rc]-(左儿子的右颜色==右儿子的左颜色)。。实在太久没写树剖结果码+调试花了两节多晚自习,,各种傻逼错误,什么反向边忘加,标记忘记下传。。。还有就是更新答案的时候,关键的一点是要保证当前的两点(也就是a,b)是没有被更新到的,否则很难搞。。
...
分类:
其他好文 时间:
2015-04-20 09:36:39
阅读次数:
196