Why I am getting the error RUNtime(nzec) in python code while is working fine in my system

import sys
input=raw_input()
t=int(input)
answers=[]

def fact(n):
    if(n==0):
        return 1
    else:
        return n*fact(n-1)

for j in range(0,t):
    input=raw_input()
    n_point=input.split(" ")
    if int(n_point[0]<3):
        exit(0)
    tot_tri=fact(int(n_point[0]))/(6*(fact(int(n_point[0])-3)))
    if int(n_point[1])<3:
        min_tri=0
    else:
        min_tri=fact(int(n_point[1]))/(6*(fact(int(n_point[1])-3)))
    answers.append(tot_tri-min_tri)
for ans in answers:
    print ans

can please you add the problem you are trying…