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 1662. Goat in the Garden 6

A problem with the problem
Posted by LSBG 26 Dec 2008 22:54
I have written solution that reached test 22 during the competition(I think it corresponds to 15th in offline mode) but now I have wa and i have run out of ideas. Can anyone give me a clue on this problem. Is there a problem with precision (I am making calculations with long double but use sqrt which is a bit unprecise).
Re: A problem with the problem
Posted by Aman 6 Apr 2017 20:40
As you can see in the sample output, precision of output is till six decimal points.
0.500000 -1.000000
Try to use long double and take care of some rounding errors. Hope it helps.
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-parallelogram.html
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-trapezium.html
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-any-triangle.html