Please explain the difference between the two solutions ACM ICPC 2018 online round

Revision en3, by rishi_07, 2017-11-05 22:09:57

These are my codes for the problem Compression Algorithm of ACM ICPC 2018 online round.
I don't understand what is the problem with the first solution.
Note: The expected precision was 10^-6.
Image 1
Image 2

Tags #acmicpc2018

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English rishi_07 2017-11-05 22:09:57 28
en2 English rishi_07 2017-11-05 22:08:04 78
en1 English rishi_07 2017-11-05 22:05:37 333 Initial revision (published)