| ||||||||||
| 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 | |||||||||
要极度小心lefttop,rightbottom!!!附正确的输入处理代码.scanf("%lf%lf%lf%lf%lf%lf%lf%lf\n",&s.x,&s.y,&e.x,&e.y,<.x,<.y,&rb.x,&rb.y);
double minx,miny,maxx,maxy;
minx=min(lt.x,rb.x);
miny=min(lt.y,rb.y);
maxx=max(lt.x,rb.x);
maxy=max(lt.y,rb.y);
P[0]=Point(minx,maxy); P[1]=Point(maxx,maxy); P[2]=Point(maxx,miny); P[3]=Point(minx,miny);
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator