TEST CASES SHOWING WRONG. CODE IS WORKING FINE FOR THE SAMPLE INPUT
hi @Mukul-Shane-1247687648773500 use int instead of float and make heaps inside while loop new for each test case or clear both after each test case
updated https://ide.codingblocks.com/s/668265
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.