We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #53: Combinatoric selections
Project Euler #53: Combinatoric selections
Sort by
recency
|
19 Discussions
|
Please Login in order to post a comment
Short and simple:
def Solve_Prob(n,k):
t = 1 for i in range(0,t): n,k = map(int, input().split()) answer = Solve_Prob(n,k) print(answer)
Easy.
100 points/- python3
Hint: one does not have to compute all nCr but rather consider how nCr changes as n and r changes.