ProjectEuler/Problem_015.py
Lauchmelder23 f16aae9708 Problem 15
2018-10-11 22:09:05 +02:00

17 lines
531 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

######################################################################
# Starting in the top left corner of a 2×2 grid, and only being able to
# move to the right and down, there are exactly 6 routes to the bottom right corner.
#
#
# How many such routes are there through a 20×20 grid?
#
######################################################################
# Look at Pascal's triangle ;)
# Every row with an odd amount of number contains the solution to any n-sided grid.
# This triangle is weird
# Solution: 137846528820