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

一个方法搞定,很好做啊,!A的

Posted by yygy at 2012-10-26 21:10:27 on Problem 2296
In Reply To:Re:这题矩形位置摆放判定很恶心……与其说是2-sat题,不如说是细节题…… Posted by:peargobble at 2011-03-30 15:08:48
bool cross(int xamin,int xamax,int yamin,int yamax,
		   int xbmin,int xbmax,int ybmin,int ybmax)
{
	if(xbmax<=xamin)return false;
	if(xbmin>=xamax)return false;

	if(ybmin>=yamax)return false;
	if(ybmax<=yamin)return false;
	return true;
}

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