Registrations for the November 2021 System Design Cohort are now open Enroll Today

GOODB Solution



####
#	Python2.7
####
fact = [1]
i = 1
while i < 301 :
	n = fact[i-1] * i
	fact.append( n )
	i += 1
 
n , w , t , r = ( int(x) for x in raw_input().split() )
ans = fact[n] / ( fact[w] * fact[t] * fact[r] )
ans = ans % 1000000007
print ans

470+ Competitive Programming Solutions

If you like what you read subscribe to my newsletter.

I write essays on various engineering topics and share it through my weekly newsletter 👇