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 changxuhui at 2008-04-03 17:25:57 on Problem 3559
我的做法是
比如:
Sin 
Sin
Cos
Max
S=10
Sin(x)+sin(y)+cos(z)=2.0*sin((s-z)/2.0)*cos((x-y)/2.0)+cos(z),其中s=x+y+z;
枚举是z可能的值,因为x,y,z不为0 ,因此z-s+2<x-y<s-z-2,预先求出这个范围
内的cos((x-y)/2.0)的最大和最小值,并且满足奇偶性(不可能取遍那个范围里的所有值),这种做法是当Z固定后,答案只与cos((x-y)/2.0)
的最大或者最小值有关;但是这种做法WRONG ANSWER,我想是精度问题,不知道
该如何处理,问一下你用什么方法?谢谢!

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