Precision Issues in recently Held Contest

Правка en1, от 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.

Теги doubles

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский 3905 2015-07-23 02:08:28 1 Tiny change: 'ubmission ![here ](ht' -> 'ubmission [here ](ht'
en1 Английский 3905 2015-07-23 02:07:54 656 Initial revision (published)