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

这题spj好邪啊,这两种写法有区别吗,一直wa的可以看看

Posted by weeping at 2017-02-07 21:41:14 on Problem 3384 and last updated at 2017-02-07 21:45:45
pt[n]=pt[0]

for(int i=n;i;i--)
            ln[n-i]=Line(pt[i],pt[i-1]);
for(int i=0;i<n;i++)
            ln[i]=Line(pt[i+1],pt[i]);
spj好邪啊,上面两种写法第一种ac,第二wa的不能自理。
求半平面交,和线段顺序无关啊,只和线段方向有关啊。


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