问题描述
To simplify the building process, XadillaX built some template on the ground. The template is a very big wall and the height of each unit may be different.8Mao and Hungar have to choose any part...
分类:
其他好文 时间:
2015-04-16 21:59:28
阅读次数:
152
调试程序时,在gdb内p var,会提示
No symbol "var" in current context.
即使没有使用任何编译优化选项,仍然不能查看,放狗搜了一下,可能是这些变量被优化到寄存器中,gdb无法读取。
解决方案:
在编译是加入 ‘-gstabs+’ 选项,比如:
g++ -g -Wall -gstabs+ -o main.o main.cpp
...
分类:
数据库 时间:
2015-04-15 19:45:05
阅读次数:
120
WallTime Limit:1000MSMemory Limit:10000KTotal Submissions:31199Accepted:10521DescriptionOnce upon a time there was a greedy King who ordered his chief...
分类:
其他好文 时间:
2015-04-15 10:57:07
阅读次数:
145
描述:给定一个网格图,每个区间可能会有城市,求在边上建墙使无法从外边到达所有城市切所有城市必须联通 n,m<=400首先对于30%的数据,n,m<=10我们可以考虑用数位dp来解决这个问题考虑用射线法,如果一个点被包括的话,那么向上做一条射线,我们可以发现如果被包含的话该射线得与奇数条边相交,就可以...
分类:
其他好文 时间:
2015-04-14 11:08:43
阅读次数:
172
题目描述:Long time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. The only thing that troubled her is the typ...
分类:
其他好文 时间:
2015-04-12 12:02:05
阅读次数:
132
如果用命令 g++ -g -Wall main.cpp 编译以下代码 : /* file : main.cpp*/#include int main() { int a[5] = { 1, 2, 2, 5, 1 }; for( int i:a ) { printf( "%d\n", a[i]...
分类:
编程语言 时间:
2015-04-12 01:12:46
阅读次数:
1172
Problem Description:
After years as a brick-layer, you've been called upon to analyze the structural integrity of various brick walls built by the Tetrad Corporation. Instead
of using regular-sized ...
分类:
其他好文 时间:
2015-04-11 09:00:12
阅读次数:
173
A. Minimum DifficultyMike is trying rock climbing but he is awful at it.There arenholds on the wall,i-th hold is at heightaioff the ground....
分类:
其他好文 时间:
2015-04-10 21:55:23
阅读次数:
150
Wall
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4001 Accepted Submission(s): 1131
Problem Description
Once upon a time ther...
分类:
其他好文 时间:
2015-04-07 23:35:51
阅读次数:
360
链接:click here~~
题意:
有n个士兵每个人有一个水平值,水平高的的人可以教低的人,意思就是求最合适的组合使花费最小
【解题思路】
刚看到此题,竟没有思路。。想 了一会,其实找到最大重复元素的次数即可,因为相同的人肯定不能共用一个,所以求得最少即为最大的重复次数,跟前面一道题差不多,做完看了别人思路,发现用map容器来做很方便:map容器的内部是一个红黑树,我...
分类:
其他好文 时间:
2015-04-07 15:36:23
阅读次数:
113