himanshu006.iiita
BAN USERint Count(int n, int r, int g, int b)
{
vector<int> fact(n+1);
fact[0] = 1;
for (int i = 1 ; i <= n ; i++) {
fact[i] = fact[i-1]*i;
}
int remain = n - (r + g + b);
int sum = 0;
for (int i = 0 ; i <= remain ; i++) {
for (int j = 0 ; j <= remain-i ; j++) {
int k = remain - (i+j);
sum = sum + fact[n] / (fact[i+r]* fact[j+g]*fact[b+k]);
}
}
return sum;
}
Reppamulapaya2, Area Sales Manager at Alcatel Lucent
Jorie , a Customer services manager with more than 6 years' experience working is responsible for managing the relationships between an ...
RepHello friends my name Neha Nanda from India Chandigarh city. Doing work in SEO line in Softsys company.
Repcarleywcote, Problem Setter at Baidu
I am a Photographer in Dallas. I Capture images as directed, taking all aspects into consideration, including outside lighting, shadows ...
Repaliciaable183, Analyst at 247quickbookshelp
I am an agent contract clerk who is responsible for handling the recruitment process. I advertise the vacancies for agents ...
RepMy name Madhu Nanda from Himachal pardesh. I am a writter in English lectractrue.
Repharrytallh, Web Developer at Realty Depot
I am working as a Web developer . Here I create and maintain websites. Here I handle many responsibilities where I ...
RepAllegroMiller, abc at A9
I am working as a Courier service in the limanger company. I possess great communication skills, a highly professional attitude ...
RepI am an energetic sales professional with a track record of consistently increasing sales revenue in a competitive market. Contract ...
Repjaynebackus, Applications Developer at Achieve Internet
I am Jayne And I am working as a Record center clerk in a company. Also I'm doing a ...
RepDukeRollin, Java Experienced at AMD
Duke, a Qualified psychiatrist with seven years of experience effectively treating patients with a wide range of conditions with a ...
Swap two nodes and recur for remaining list
- himanshu006.iiita July 21, 2015