Problem Code SNAPE - NZEC while using PHP

Solution Link I tried this simple problem using PHP and I get NZEC. I cant figure out what is the problem with my code. I think my code can easily handle the input data in the given limits. Any suggestions are welcomed.

1 Like

nzec problem have same solution in php as c…you need to spoj for c nzec to resolve

//