| ||||||||||
| 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 | |||||||||
Re:我有话要说!In Reply To:我有话要说! Posted by:ecjtuQX at 2008-08-26 17:50:55
> scanf("%lf%lf%lf%lf",&l.st.x,&l.st.y,&l.ed.x,&l.ed.y);
> scanf("%lf%lf%lf%lf",&p1.x,&p1.y,&p3.x,&p3.y);
> /*
> 很重要的地方 应为它给的坐标 不一定是 x1<x3 y1>y3 我自己要转化
> */
> if(p1.x>p3.x)
> {
> temp=p1.x;
> p1.x=p3.x;
> p3.x=temp;
> }
> if(p1.y<p3.y)
> {
> temp=p1.y;
> p1.y=p3.y;
> p3.y=temp;
> }
靠!被这儿搞了一次wa!
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator