Files
project_euler/e_53.py
Julien Lengrand-Lambert 6eb94866e1 Solves Problem 39. 1 minute time is reached, but the solution comes up
to be very ugly. 
I'm sure I can find something better than that !

Still have to perform some good work on prime numbers! (one day . . . )
I begin to lack some primes problems cause of that :s 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-10 00:45:20 +01:00

29 lines
696 B
Python

#!/usr/bin/env python
'''
Created on 10 feb. 2012
@author: Julien Lengrand-Lambert
DESCRIPTION: Solves problem 53 of Project Euler
There are exactly ten ways of selecting three from five, 12345:
123, 124, 125, 134, 135, 145, 234, 235, 245, and 345
In combinatorics, we use the notation, 5C3 = 10.
In general,
nCr = n! / r!(nr)! ,where r n, n! = n(n1)...321, and 0! = 1.
It is not until n = 23, that a value exceeds one-million: 23C10 = 1144066.
How many, not necessarily distinct, values of nCr, for 1 n 100, are greater than one-million?
'''
def aaa():
"""
Returns
"""
return 1
if __name__ == '__main__':
print "Answer : %d " % (1)