| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
一个方法搞定,很好做啊,!A的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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator