Python NZEC error

I am getting a NZEC error for this code:

import sys,math
t=input()
while(t):
    n,r=map(int,sys.stdin.readline().split())
    c=(math.factorial(n))/(math.factorial(n-r)*math.factorial(r))
    print c
    t-=1

For NZEC: Check for the case when k is greater than n!!