Java problem in Neghbouring enemy [dp]

this problem is on codeforces there i got AC but here last three testcases are not accepted gives run error.

code link: https://ide.codingblocks.com/s/248760

hello @dhruv.160410116084
your code is correct,there might be some issue with the checker .
since u already got ac on codefroces u can try next problem.

but many problems have same issue so eventually I can’t able to finish course 100% , so please check this

please write to [email protected]

i have also informed to team.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.