水题。不过,题意。。呵呵了。。围一个凸包,求出面积,然后除以50就可以了。#include #include #include #include using namespace std;const int MAXN=10500;struct point { int x,y;}p[MAXN];int ...
分类:
其他好文 时间:
2014-07-31 23:47:30
阅读次数:
328
centos启动时,提示错误: 1 /dev/mapper/VolGroup-lv_root contains a file system with errors,check forced. 2 /dev/mapper/VolGroup-lv_root: 3 Inodes that were par...
分类:
其他好文 时间:
2014-07-31 23:29:00
阅读次数:
3182
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:
其他好文 时间:
2014-07-31 23:15:00
阅读次数:
201
1,数据库的完整性约束是针对数据更新时所做的一种检查措施,在一张数据表上回存在一个或多个约束。
2,约束一共分为5种:非空约束(NOT NULL),唯一约束(UNIQUE),主键约束(PRIMARY KEY),检查约束(CHECK),外键约束(FOREIGN KEY)。
3,定义约束的时候可以使用CONSTRAINT关键字设置约束的名称。
4,外键约束设置时可以进行级...
分类:
其他好文 时间:
2014-07-31 20:57:37
阅读次数:
210
1 2 3 4 ${item.text }5 6 7 用Jquery 方法判断checked 是否被选中.1 if($(".btn1").filter(":checked").le...
分类:
其他好文 时间:
2014-07-31 16:42:46
阅读次数:
386
【Level Of Detail】 Here's one of the ways to set up an object with differentLODs. At this point the empty object should contain both versions of th...
分类:
其他好文 时间:
2014-07-31 16:03:16
阅读次数:
253
重载和模板
/**
* 功能:重载和模板
* 时间:2014年7月27日16:23:32
* 作者:cutter_point
*/
#include
#include
#include
using namespace std;
/**
重载模板书写
*/
template
string debug_rep(const T &t)
{
ostringstream ret;...
分类:
编程语言 时间:
2014-07-31 09:55:37
阅读次数:
288
模板左值右值的转换
/**
* 功能:模板左值右值的转换
* 时间:2014年7月27日08:18:06
* 作者:cutter_point
*/
#include
#include
#include
using namespace std;
template
auto fcn(It beg, It end) -> typename remove_reference::ty...
分类:
编程语言 时间:
2014-07-31 09:55:27
阅读次数:
312
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 /...
分类:
编程语言 时间:
2014-07-31 02:28:25
阅读次数:
376
题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identica....
分类:
编程语言 时间:
2014-07-31 02:24:15
阅读次数:
211