很裸的线段树求面积并。
坐标需要离散化一下。
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
#define maxn 11000
#define...
分类:
其他好文 时间:
2014-06-10 19:23:46
阅读次数:
200
python socket可以实现socket通信功能,还可以与php, js等程序进行socket通信,达到在网页中嵌入Python程序的目的。
Python中使用socket模块完成socket通信功能,其提供底层的套接字访问接口。
项目中,Python通过socket与前端js通信,读入数据,处理后传回。...
分类:
编程语言 时间:
2014-06-10 19:21:09
阅读次数:
312
先容哥叹息一句,此奥~,这什么g8情况,没头脑的装了将近3g的OpenCV,结果没啥用。。。
入题!!环境为Python2.7
严格按照一下步骤操作,必成功:
所需软件如下:
VideoCapture: http://videocapture.sourceforge.net/VideoCapture-0.9-5.zip
MyEclipse 插件PyDev:
http://ncu.d...
分类:
编程语言 时间:
2014-06-10 18:44:17
阅读次数:
390
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is
a palindrome.
"race a car" is no...
分类:
其他好文 时间:
2014-06-10 18:36:29
阅读次数:
193
(一)
一个继承体系的声明:
class Date {...};
class Customer {
public:
...
private:
string name;
Date lastTransaction;
};
class PriorityCustomer : public Customer {
public:
PriorityCustomer(const...
分类:
编程语言 时间:
2014-06-10 17:45:35
阅读次数:
289
原题地址:https://oj.leetcode.com/problems/longest-common-prefix/题意:Write
a function to find the longest common prefix string amongst an array of
strings.解...
分类:
编程语言 时间:
2014-06-10 16:31:52
阅读次数:
261
///url:地址 data:数据 public static string
GetContentFromUrl(string url, string data) { Socket socket = new
Socket(AddressFamily.InterNetwor...
分类:
其他好文 时间:
2014-06-10 16:28:19
阅读次数:
170
// requestUrl:地址?xx=xx private string
GetContentFromUrll(string requestUrl) { string _StrResponse = "";
HttpWebRequest...
分类:
其他好文 时间:
2014-06-10 16:22:14
阅读次数:
129
我们都知道一个对象仅仅要实现了Serilizable接口,这个对象就能够被序列化,java的这样的序列化模式为开发人员提供了非常多便利,我们能够不必关系详细序列化的过程,仅仅要这个类实现了Serilizable接口,这个的全部属性和方法都会自己主动序列化。
然而在实际开发过程中,我们经常会遇到这种问...
分类:
编程语言 时间:
2014-06-10 16:18:20
阅读次数:
244
一次过 1 public class Solution { 2 public String
intToRoman(int num) { 3 StringBuffer res = new StringBuffer(); 4 if (num >
3999 || n...
分类:
其他好文 时间:
2014-06-10 16:12:12
阅读次数:
215