摘要:
线段树:http://www.notonlysuccess.com/index.php/segment-tree-complete/主席树:http://blog.csdn.net/metalseed/article/details/8045038http://seter.is-programmer.com/posts/31907.html划分树:http://wenku.baidu.com/view/8fc6bc365a8102d276a22fa0.htmlhttp://blog.csdn.net/zxy_snow/article/details/6681086 阅读全文
posted @ 2013-06-20 21:54
冰鸮
阅读(340)
评论(0)
推荐(0)
摘要:
航线算球面距离,需要经纬度转空间坐标。任意两点间距离用Floyd求出来,查询时直接查表。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std; 9 10 const int MAXN = 110; 11 const double INF = 1e30; 12 const double eps = 1e-8; 13 const double PI = acos( -1.0 ); 14 15 struct Point 16 { 17 ... 阅读全文
posted @ 2013-06-20 00:12
冰鸮
阅读(285)
评论(0)
推荐(0)

浙公网安备 33010602011771号