Floating point precision problem

Правка en3, от lakshay05, 2020-10-29 19:05:41

My submission 97108301 of problem 1437A - Marketing Scheme got wrong answer on test case 7 using float during contest but using double it is getting accepted after the contest. After searching a lot on internet , I am not getting a satisfactory answer. Can someone give me a proper reason why it is giving wrong answer using float?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский lakshay05 2020-10-29 19:05:41 30
en2 Английский lakshay05 2020-10-29 19:04:48 15 Tiny change: ' getting answer. \' -> ' getting a satisfactory answer. \'
en1 Английский lakshay05 2020-10-29 19:03:53 343 Initial revision (published)