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

被精度恶心到死了

Posted by twf at 2010-05-25 14:22:45 on Problem 1151
for(int i=0;i<n*2;++i)
			for(int j=0;j<n*2;++j) 
					area+=mark[i][j]*(sortedx[i+1]-sortedx[i])*(sortedy[j+1]-sortedy[j]); 

与

for(int i=0;i<n*2;++i)
			for(int j=0;j<n*2;++j) 
				if(mark[i][j])
					area+=(sortedx[i+1]-sortedx[i])*(sortedy[j+1]-sortedy[j]); 

有很大差别吗?
一个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