第一维排序 第二维LIS
#include
#include
#include
using namespace std;
int dp[100010];
int p[100010];
struct node
{
int x, y, id;
}a[100010];
bool cmp(node a, node b)
{
if(a.x != b.x)
return a.x < b...
分类:
其他好文 时间:
2014-09-22 01:03:01
阅读次数:
275
The Java Persistence API introduced in Java EE 5 is a subset of EJB 3 and replaces the persistence solution of EJB 2.0 CMP. JPA 1.0 has been defined as part of the EJB 3.0 specification (JSR 220) b...
分类:
其他好文 时间:
2014-09-22 00:47:11
阅读次数:
202
读王纯业前辈的笔记遇到个很坑的例子A namespace is a mapping from names to objects>>> class a: def __cmp__(self,other): if other > 0 : print 'other > 0' ;return -1 eli.....
分类:
编程语言 时间:
2014-09-19 18:59:45
阅读次数:
188
水。。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 100
double a[N];
bool cmp(double x, double y){
return x>y;
}
int n;
double quick(double x...
分类:
其他好文 时间:
2014-09-13 18:49:55
阅读次数:
180
三点以下的情况就不写了
Python:
import math
class Point( object ):
def __init__( self, x, y ):
self.x = x
self.y = y
def __cmp__( self, other ):
if self.y < other.y:...
分类:
其他好文 时间:
2014-09-13 00:50:24
阅读次数:
409
import math
class Point( object ):
def __init__( self, x, y ):
self.x = x
self.y = y
def __cmp__( self, other ):
if self.y < other.y:
return -1...
分类:
其他好文 时间:
2014-09-12 15:13:23
阅读次数:
190
class C( object ):
def __init__( self, x1, x2, x3 ):
self.x1 = x1
self.x2 = x2
self.x3 = x3
def __cmp__( self, other ):
if self.x1 < other.x1:
...
分类:
编程语言 时间:
2014-09-12 13:35:03
阅读次数:
201
文件系统cmp [-l-s] File1 File2:比较两个文件,输出第一个不同的位置。-l:这比较文件,然后显示第一个不同的字节数(使用十进制格式)和每个不同的不同字节(使用八进制格式)-s:如果文件相同,则给出值 0,如果不同,则给出值 1,或者如果发生错误,则给出值 2du :查看文件占用的...
分类:
其他好文 时间:
2014-09-10 23:41:31
阅读次数:
212
头文件: algorithm参数: next_permutation(first,last) next_permutation(first,last,cmp)first,last为两个iterator,分别指向目标的头和尾,cmp是一个bool函数,接受两个目标序列值,返回boolne...
分类:
其他好文 时间:
2014-09-01 20:52:23
阅读次数:
294
数据持久化就是将内存中的数据模型转换为存储模型,以及将存储模型转换为内存中的数据模型的统称; 数据模型可以是任何数据结构或对象模型,存储模型可以是关系模型、XML、二进制流等;cmp和Hibernate只是对象模型到关系模型之间转换的不同实现。只不过对象模型和关系模型应用广泛,所以...
分类:
其他好文 时间:
2014-08-29 12:53:17
阅读次数:
163