Search found 1 match

by mhm
Sun Mar 14, 2010 1:10 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 17755

369 / 530 : Combinations : WAs all the way,Please Help

Here's my C code : #include<stdio.h> long long int combinFnc(short int n,short int m) { long long int finalVal=1; short int multList[51]={0},divList[51]={0}; register short int i,j,k=0; for(i=(n-m)>m?(n-m+1):m+1,j=(n-m)>m?m:(n-m);(i<=n || j>=2);i++,j--,k++) { if(i<=n) multList[k]=i; if(j>=2) divList...

Go to advanced search