Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

python NZEC error

$
0
0
import math;
T=int(raw_input());
a=[];
for i in range(T):
    a=raw_input().split();
    N=int(a[0]);
    M=int(a[1]);
    K=int(a[2]);
    n=math.factorial(N+M-2)/(math.factorial(N-1)*math.factorial(M-1));

    a=math.factorial(N+M-3)/(math.factorial(N-1)*math.factorial(M-2));
    print n;
    print a;

Why is this code giving me an NZEC error?


Viewing all articles
Browse latest Browse all 39796


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>