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

数据不够强,用排序过的但好像发现有bug

Posted by zzqzzq at 2011-02-18 03:17:33 on Problem 2007
数据不够强,我用的极角序试了一下,结果过了。
但对于数据
0 0
1 1
2 2
3 3
1 -1
2 -2
排序的程序输出的是
(0,0)
(1,-1)
(2,-2)
(1,1)
(2,2)
(3,3)
但个人感觉应该是
(0,0)
(1,-1)
(2,-2)
(3,3)
(2,2)
(1,1)
用凸包应该可以,不过不要用极角排序来造凸包,这样对于上述数据应该还存在问题。
希望大牛指正。

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