Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

只是很简单的统计,贴个排序比较函数

Posted by 407811696 at 2011-01-05 14:05:17 on Problem 2726
struct node
{
	int x;
	int y;
	bool operator<(node &t1)
	{
		if(y!=t1.y)
			return y<t1.y;
		else
			return x>t1.x;
	}
};

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator