码迷,mamicode.com
首页 > 其他好文
Declarative Exception Handling in Struts
Declarative Exception Handling is the procedure of handling Exceptions declaratively through the help of xml files. It is not needed to include except...
分类:其他好文   时间:2015-06-20 16:52:39    阅读次数:100
Balanced Binary Tree
Description:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in whi...
分类:其他好文   时间:2015-06-20 16:52:12    阅读次数:90
bzoj1064
很巧妙的题首先有几种情况1. 有环 2.两点间有多条路径 3.其他3.显然最简单,最小是3,最大是每个弱联通块中最长链2.显然,两点间两条路径的差是答案的倍数1.出现环,那答案一定是其约数,那么最大答案就是所有环长的最大公约数,最小是最大的大于等于3的最小因数综合以上,我们就有了大概的思路,但是不好...
分类:其他好文   时间:2015-06-20 16:51:18    阅读次数:123
BZOJ 1500: [NOI2005]维修数列( splay )
splay.....------------------------------------------------------------------------#include#include#include#include#include#define rep( i , n ) for( in...
分类:其他好文   时间:2015-06-20 16:53:46    阅读次数:221
主键约束和唯一性约束
主键约束和唯一性约束都是索引,它们的区别是:主键字段可以确保唯一性,但主键字段不能为NULL.唯一性约束可以确保唯一性,但唯一性约束的字段可以为NULL唯一性约束对含有NULL的记录不起作用,即可以重复加入含有NULL的记录,主键字段不能为NULLmysql-workbench无法创建多字段唯一性约...
分类:其他好文   时间:2015-06-20 16:51:36    阅读次数:197
Populating Next Right Pointers in Each Node II
Description:Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous s...
分类:其他好文   时间:2015-06-20 16:53:04    阅读次数:79
github pages & Jekyll
首先,一本好书:http://git-scm.com/book/zh/v1,据说看了前4章这本书就会用github大部分功能了然后进入主题原文地址:http://www.ruanyifeng.com/blog/2012/08/blogging_with_jekyll.html搭建一个免费的,无限流量...
分类:其他好文   时间:2015-06-20 16:52:11    阅读次数:131
彻底删除openfire
首先,确保你已经关掉了openfire打开终端 (在应用程序-->实用工具-->)输入以下命令sudo rm -rf /Library/PreferencePanes/Openfire.prefPanesudo rm -rf /usr/local/openfiresudo rm -rf /Libra...
分类:其他好文   时间:2015-06-20 16:51:04    阅读次数:103
俄罗斯方块
刚学会的。...
分类:其他好文   时间:2015-06-20 15:50:14    阅读次数:202
跳马问题
#include #include using namespace std; typedef struct{ int row; int col; }Node; int n; int sx,sy;//start node int ex,ey;//end node int map[200][200];//mark array int a[8][2] = {{1,2},{2,1...
分类:其他好文   时间:2015-06-20 15:46:26    阅读次数:106
LD_PRELOAD应用--基于libvirt审计(上)
转载请表明出处,本人邮箱:562703006@qq.com     随着近年来虚拟化技术飞速发展,使用虚拟化工具的人数日趋增加,同时孕育了大量相关产业。libvirt虚拟化审计就是在这个背景下产生的。     libvirt提供了统一抽象的虚拟化管理平台---libvirtd服务器,通过他可以与主流的虚拟化平台交互,例如QEMU/KVM等, 将用户虚拟机请求发送给特定具体的虚拟化介质,由该...
分类:其他好文   时间:2015-06-20 15:49:02    阅读次数:222
任意连通图的哈密顿回路计算流程
任意连通图的哈密顿回路计算流程...
分类:其他好文   时间:2015-06-20 15:44:47    阅读次数:199
又是整数划分(poj1032)
问题:给你一个数n把它分为若干个数(不同) 使得他们的乘积最大 分析 :  把一个数n可以分为a,b两个大于一的数,他们的乘积一定会大于这个数n  so 拆开数的原则就是把他们分的尽可能小的数 那么最好是x个2 因为不同所以最好两两相差不超过2 于是乎 可以使得 n = 2+3+...+t e.g 6=2 * 3 *1 用1不能改变它的乘积值 所以把剩下的加到最前头(保证不同)6 = 2...
分类:其他好文   时间:2015-06-20 15:44:08    阅读次数:115
bzoj1312
忘写题解了,经典的最大密度子图可以类似分数规划的做,二分密度,然后转化为最大权闭合子图做,判断是否大于0注意方案的输出 1 const eps=1e-6; 2 lim=1e-12; 3 inf=1000000007; 4 type node=record 5 ...
分类:其他好文   时间:2015-06-20 15:40:53    阅读次数:163
Construct Binary Tree from Inorder and Postorder Traversal
Description:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.Co...
分类:其他好文   时间:2015-06-20 15:39:21    阅读次数:108
分金币 Uva 11300
题意给定N个人成环状坐,每个人初始分配Ai的金币,金币总数可以被N整除,每个人可以给左右相邻的人一定数量的金币使得最终每个人的金币数量相同,求转移数量最小的方案所转移的总金币数量。N<=1000000对每组数据保证输出在INT64范围之内。1.最终每个人拥有的金币可以直接确定,设为M2.设xi表示第...
分类:其他好文   时间:2015-06-20 15:38:54    阅读次数:105
[POJ 1330] Nearest Common Ancestors (倍增法)
[POJ 1330] Nearest Common Ancestors (倍增法)
分类:其他好文   时间:2015-06-20 15:37:32    阅读次数:96
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!