[the problem link] (MAGICHF Problem - CodeChef)
I think my code seems to get wrong on some of the test cases please help to debug it
[the problem link] (MAGICHF Problem - CodeChef)
I think my code seems to get wrong on some of the test cases please help to debug it
In line 22 you have assigned x to variable t before taking the input itself for X. so garbage values are being stored in t. Take the input for x and then assign it to t.
thanks it got submitted .