题目大意:
对平面上的点进行操作。
add x y 在 (x,y )上加一个点。
remove x y 移除 (x,y)上的点。
find x y 求出在(x,y)右上角离他最近的点,优先级是靠左,靠下。
思路分析:
find 操作 比较麻烦。
要保证x大的同时还要确保x最小,而且该x上还要有点。
这样要找大的时候要小的,就是在线段树上选择性的进入左子树还是右子树。
所以...
分类:
其他好文 时间:
2014-08-01 13:51:52
阅读次数:
241
一、创建对象 1、对象直接量。 var point = { x:0,y:0 }; //point就是一个对象,跟C#不同,它不需要一定有类才能创建对象。 2、通过new创建对象 var d = new Date(); //创建一个Date对象 3、原型 Object....
分类:
编程语言 时间:
2014-08-01 13:21:21
阅读次数:
200
AllowOverride all#修改地方Require all granted## Note that from this point forward you must specifically allow# particular features to be enabled - so if s...
分类:
其他好文 时间:
2014-08-01 12:56:51
阅读次数:
210
Shoulder bags are very nice to have, it can be fun and funky if you use it in the right clothes. It can also be a great gift to give your friends some...
分类:
其他好文 时间:
2014-08-01 12:52:31
阅读次数:
219
1 $(document).ready(function () { 2 /*用正则表达式获取url传递的地址参数,split后获得地址数组*/ 3 bmap = new BMap.Map('mapcontainer'); 4 var point = new BMap.Point(116.404, ....
分类:
Web程序 时间:
2014-07-31 23:51:40
阅读次数:
264
水题。不过,题意。。呵呵了。。围一个凸包,求出面积,然后除以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
【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 n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:
其他好文 时间:
2014-07-30 12:05:03
阅读次数:
248