Problem D:题意:给定一棵n个点树,每个点有一个字母,有m个询问,每次询问某个节点x的子树中所有深度为k的点能否组成一个回文串分析:一堆点能组成回文串当且仅当数量为奇数的字母不多于1个,显然这个状态可以用二进制表示 那么对于单个询问如何快速找到所有符合要求的点呢? 这里可以考虑树...
分类:
其他 时间:
2015-08-15 16:17:07
收藏:
0 评论:
0 赞:
0 阅读:
278
总是T,以为要剪枝,后来发现加个map就行了 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define MOD 100000000710 ...
分类:
其他 时间:
2015-08-15 16:16:56
收藏:
0 评论:
0 赞:
0 阅读:
107
1075. PAT Judge (25)The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to ge...
分类:
其他 时间:
2015-08-15 16:16:36
收藏:
0 评论:
0 赞:
0 阅读:
208
http://stackoverflow.com/questions/7596364/whats-the-difference-between-cancelbubble-and-stoppropagation结论:cancelBubble是IE8及以下的浏览器阻止冒泡的一个布尔值类型的属性(非方法)...
分类:
其他 时间:
2015-08-15 16:15:36
收藏:
0 评论:
0 赞:
0 阅读:
223
Learning Lua: 7 - userdata1. Userdata basic"There are eight basic types in Lua: nil, boolean, number, string, userdata, function, thread, and table.Th...
分类:
其他 时间:
2015-08-15 16:15:26
收藏:
0 评论:
0 赞:
0 阅读:
357
I NEED A OFFER!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15266Accepted Submission(s): 6031Pr...
分类:
其他 时间:
2015-08-15 16:15:06
收藏:
0 评论:
0 赞:
0 阅读:
180
3D dungeon时间限制:1000ms | 内存限制:65535KB难度:2描写叙述You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cub...
分类:
其他 时间:
2015-08-15 16:14:56
收藏:
0 评论:
0 赞:
0 阅读:
259
The most obvious idea is to maintain two divisors to get the most and least significantdigits and compare them. Well, there are much more clever ideas...
分类:
其他 时间:
2015-08-15 16:14:46
收藏:
0 评论:
0 赞:
0 阅读:
223
想了解Grunt,可以先去官网 看看。第一次接触Grunt是通过Coding的移动端项目, 刚开始因为环境的问题折腾了一两天,然后就顿悟了。Grunt构建工具对于前端开发而言,简直是神器(ps.虽然我不是专职前端2333)... 高手们 觉得描述有误欢迎指教。这里只是对我的使用过程做一些简单的记录和...
分类:
其他 时间:
2015-08-15 16:14:36
收藏:
0 评论:
0 赞:
0 阅读:
113
DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write...
分类:
其他 时间:
2015-08-15 16:14:26
收藏:
0 评论:
0 赞:
0 阅读:
185
response.setHeader()下载中文文件名乱码问题 收藏1. HTTP消息头(1)通用信息头即能用于请求消息中,也能用于响应信息中,但与被传输的实体内容没有关系的信息头,如Data,Pragma主要: Cache-Control , Connection , Data , Pragma ...
分类:
其他 时间:
2015-08-15 16:14:16
收藏:
0 评论:
0 赞:
0 阅读:
182
题目传送门 1 /* 2 题意:给出一系列的01字符串,问最少要问几个问题(列)能把它们区分出来 3 状态DP+记忆化搜索:dp[s1][s2]表示问题集合为s1。答案对错集合为s2时,还要问几次才能区分出来 4 若和答案(自己拟定)相差小于等于1时,证说明...
分类:
其他 时间:
2015-08-15 16:14:06
收藏:
0 评论:
0 赞:
0 阅读:
208
转载:http://huchh.com/2015/06/22/qemu-%E5%AF%B9%E8%99%9A%E6%9C%BA%E7%9A%84%E7%BA%BF%E6%80%A7%E5%9C%B0%E5%9D%80%E7%A9%BA%E9%97%B4%E7%AE%A1%E7%90%86/前言cpu...
分类:
其他 时间:
2015-08-15 16:12:46
收藏:
0 评论:
0 赞:
0 阅读:
473
问题 C: 善良的国王时间限制: 1 Sec内存限制: 128 MB提交: 112解决: 48[提交][状态][讨论版]题目描述很久很久以前,有一个贫困的国家,这个国家有一个善良爱民的国王,但是国运维艰,这个国家总是不得不面对这天灾的严峻挑战,又一次连月的大雨,引发了洪水,洪水冲断了道路,水褪去后也...
分类:
其他 时间:
2015-08-15 16:12:06
收藏:
0 评论:
0 赞:
0 阅读:
232
今天认识到自己的一个错误,如果从一个页面传值到另一个页面,前边页面用request,后边页面也要用request得到类似的,response、pageContext、session、application依次对应一般传值我们用request请求,因为它比较简单,response比较麻烦
分类:
其他 时间:
2015-08-15 16:11:46
收藏:
0 评论:
0 赞:
0 阅读:
134
//内部使用同名变量 会出现死循环问题for(var i=0;i<50;i++){console.log('外部i',i);for(var i=0;i<10;i++){console.log('内部i',i);}console.log('循环',i); //内部循环结束后,此处i变为10, 覆盖外层...
分类:
其他 时间:
2015-08-15 16:11:36
收藏:
0 评论:
0 赞:
0 阅读:
177
题目传送门 1 /* 2 题意:给一串跳舞的动作,至少一只脚落到指定的位置,不同的走法有不同的体力消耗,问最小体力消费多少 3 DP:dp[i][j][k] 表示前i个动作,当前状态(j, k)的最小消费,状态转移方程:(a[i], k) 13 #include 14 #includ...
分类:
其他 时间:
2015-08-15 16:11:07
收藏:
0 评论:
0 赞:
0 阅读:
204
DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i...
分类:
其他 时间:
2015-08-15 16:10:57
收藏:
0 评论:
0 赞:
0 阅读:
207
The idea is to add the two numbers (represented by linked lists) nodes after nodes and store the result in the longer list. Since we may append the ad...
分类:
其他 时间:
2015-08-15 16:10:36
收藏:
0 评论:
0 赞:
0 阅读:
185
int是java提供的8种原始数据类型之一。Java为每个原始类型提供了封装类,Integer是java为int提供的封装类。int的默认值为0,而Integer的默认值为null,即Integer可以区分出未赋值和值为0的区别,int则无法表达出未赋值的情况,例如,要想表达出没有参加考试和考试成绩...
分类:
其他 时间:
2015-08-15 16:10:16
收藏:
0 评论:
0 赞:
0 阅读:
158