Problem with precision in calculation

Revision en1, by ramanujanankur, 2016-08-22 01:36:22

I submitted code for the problem problem D. My incorrect submission is Incorrect while accepted solution is Accepted. As you can see that i changed from calculating the whole area and then remove sector area to simply adding areas of segments.But why should precision differ so much? I could not find the reason for this.

Tags geometry, precision

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ramanujanankur 2016-08-22 01:36:22 523 Initial revision (published)