Pages
Home
Sitemap
Wednesday, September 16, 2009
UVA Problem#369
Question:
http://uva.onlinejudge.org/external/3/369.html
Solution:
double fact(int n){
int i; double f=1;
for(i=2; i<=n; i++){
f = f*i;
}
return f;
}
int main(){
....
....
c = fact(n) / ( fact(n-m) * fact(m) )
...
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment