很裸的线段树求面积并。
坐标需要离散化一下。
#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
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
java类加载
先来看一段小程序:
package com;
public class Main1 {
static {
System.out.println("1111") ;
}
public static void main(String[] args) {
System.out.println("2222") ;
}
}
输出结果为:
111...
分类:
编程语言 时间:
2014-06-10 17:27:38
阅读次数:
272
正在写一个手指画图的程序C# +
WPF其中有一部分是加载外部某PNG文件,放入BitmapImage,再作为Image的Source显示在Canvas上画了几笔之后,再存回这个PNG文件================问题=================BitmapImage这个对象没有Disp...
分类:
其他好文 时间:
2014-06-10 16:42:15
阅读次数:
276
原题地址: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