| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:不用循环吧 这样就好了In Reply To:Re:不用循环吧 这样就好了 Posted by:first at 2006-03-09 17:17:03 > int PlaceApple(int m, int n)
> {
> if(m < 0)
> return 0;
> if(m == 0)
> return 1;
> if(n == 0)
> return 1;
> return PlaceApple(m - n, n) + PlaceApple(m, n - 1);
> }
!!!!!!!!!!
好思想!!!!!!!
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator