Hi, I am getting NZEC error and i tried various ways to eliminate it but not able to figure out why it caused. To resolve that i tried using try but this time on submission it says wrong answer. I was not able figure out so I had look at some of the submissions and i found that the logic was similar to what I have written , so i tried executing that code in my IDE for which I again got the same error NZEC. Am I missing anything ?
n=int(input()) for i in range(n): k=int(input()) a=0 for j in range(k): l=input().split(" ") s=int(l)+1 p=int(l) v=int(l) p=(p//s)*v if (p>a): a=p print(a)