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:请问这道题怎样控制精度?

Posted by peng494563814 at 2010-05-27 15:21:26 on Problem 2272
In Reply To:请问这道题怎样控制精度? Posted by:zerotext at 2006-04-10 10:06:23
		if(x<3.00000000000001)
                       j+=100;
		else if(x<6.00000000000001)
			j+=80;
		else if(x<9.00000000000001)
			j+=60;
		else if(x<12.00000000000001)
			j+=40;
		else if(x<15.000000000000001)
			j+=20;

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