摘要:
http://acm.nyist.net/JudgeOnline/problem.php?pid=90今天开始上算法课了,这是今天老师将的书本上的递归的内容。View Code 1 #include <iostream> 2 using namespace std; 3 int f(int n,int m) 4 { 5 if(n<1 || m<1) return 0; 6 if(n==1 || m==1) return 1; 7 if(n == m) return f(n,n-1)+1; 8 if(m > n) return f(n,n); 9 ret... 阅读全文
posted @ 2012-09-12 21:10
YORU
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号