ATM HS08TEST WA even after correct output!

Hi there, I’m getting the correct output when I compile and run. But upon submitting I’m getting WA. I have checked other solutions also. Can’t seem to know why it’s showing WA!

https://www.codechef.com/viewsolution/46900446

Please post a link to your submission.

Sorry. Now link is updated.

1 Like

Thanks :slight_smile: It’s the same mistake everyone else makes - consider the test input:

5 5.50

I think it should be <= in line 12. Am I correct?

You know, I’m actually not sure now XD

The Editorialist’s solution gives 5.50 for that test case, as yours does.

Perhaps try with <= and see if that gets you AC.