wrong answer for problem codechef and subarray

i m getting wrong answer
but when i run the problem on my system
i m getting correct answer for various inputs
i want to know that for which input my code produces wrong output

1 Like

i m also getting wrong answer but when i run the problem on my system i m getting correct answer for all inputs that given in Question example i want to know that for which input my code produces wrong output and whats the criteria to passed

But which problem does the code for?

I am having the same problem for java implementation

Problem name codechef and subarray

//