hdarwin

cstutoringcenter.com_Combinations

Jan 4th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import math
  2. def solution(x, y):
  3.     return math.factorial(x) / (math.factorial(y) * math.factorial(x-y))
  4. print solution(17, 10) - solution(30, 12) + solution(50, 3)
Advertisement
Add Comment
Please, Sign In to add comment