Wrong answer on Submit, works correctly on Run

Describe your bug

I solve a practice problem and when I run it , it shows successfully executed but when I submit it shows wrong answer.

Screenshot




Additional info

Hey @radhika46,

You code is running for just one test case because you haven’t indented the lines from 5 to 8. To run it for all the test cases, you have to indent it such that the if-else block comes inside the for loop.

1 Like

you have to write the code inside the for loop why because you have to work on multiple test cases but you are working on a single test case that toooo first one onlyyyy