Precision Issues in recently Held Contest

Revision en1, by 3905, 2015-07-23 02:07:54

Hello my submission here gives WA on test 3 due to precision issues.My question is how to detect playing with doubles would give a WA.Because there are many instances I recall where intended solution was to manipulate with doubles but still there was no precision errors unlike this case.So if someone can help me it would be great.And yeah in above solution I am trying to find all the coordinates first (0,0) & (a1,0) being the first two and then remaining coordinates and then using the standard way of finding area of triangle if coordinates are given.

Tags doubles

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English 3905 2015-07-23 02:08:28 1 Tiny change: 'ubmission ![here ](ht' -> 'ubmission [here ](ht'
en1 English 3905 2015-07-23 02:07:54 656 Initial revision (published)