Friday, August 9, 2013

3932. Point Connection Game in a Circle


MCIRGAME/
CODE

def fac(n):
    if(n==0):
        return 1
    else:
        return n*fac(n-1)
while(True):
    k=input()
    if(k==-1):
        break
    else:
        temp=fac(2*k)/(fac(k+1)*fac(k))
        print temp


2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. can anyone say how did he arrived at the conclusion??

    how to derive the result??

    ReplyDelete