ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1200. Horns and Hoofs

Some help for...
Posted by Oleg Strekalovsky [Vologda SPU] 15 May 2009 02:13
Pay attention to:
1.nHoofs+nHorns<=k;
2.Use long or int arithmetics - not double or float
3.You have at first function of 2 variable. Try to transform it to the function of 1 variable and use simple forumla.
I think your know how to calc funciton's maximum :)
4.nHoofs and nHorns MUST be non-negative in this formula!

Good luck.
Re: Some help for...
Posted by SkorKNURE 22 Sep 2009 20:49
Solutions with float calculations are also easily acceptable. Use epsilons