15 de julio de 2012

Project Euler 15



#!/usr/bin/env python
from operator import mul
def factorial(n):
    return reduce(mul,range(1,n+1))
sqrGridSide = 20
print factorial(2*sqrGridSide)/(factorial(sqrGridSide)**2)