These are my codes for the problem [Compression Algorithm](https://www.codechef.com/ACMIND17/problems/COMPEXP) 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](https://ibb.co/dXQMnb) ↵
![ Image 2](https://ibb.co/kgFyYG)
I don't understand what is the problem with the first solution. ↵
Note: The expected precision was 10^-6. ↵
![ Image 1](https://ibb.co/dXQMnb) ↵
![ Image 2](https://ibb.co/kgFyYG)