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!
Please post a link to your submission.
Sorry. Now link is updated.
Thanks It’s the same mistake everyone else makes - consider the test input:
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.