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

Re:谁能帮忙看看是怎么回事么??官方数据都能过,却WA.....加数据了么!!谢谢......

Posted by hongxian at 2007-05-23 21:57:11 on Problem 1039
In Reply To:谁能帮忙看看是怎么回事么??官方数据都能过,却WA.....加数据了么!!谢谢...... Posted by:yellowflying at 2006-09-03 20:23:34
int judge(point pa,point qb)//judge的声明改为这样,而且代码相应改一下

/*还有
for(j=0;j<n;j++)
	if(i!=j)
		if(judge(i,j))
			break;
改为*/
for(j=i+1;j<n;j++)
{
	if(judge(p[i],q[j]))
		break;
         if(judge(q[i],p[j]))
                  break;
}
//就可以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