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:我老是TLE 哪位高手可以给我一个好的算法啊In Reply To:我老是TLE 哪位高手可以给我一个好的算法啊 Posted by:yzu_zoufeng at 2005-12-11 17:13:02 > 我做这题老是超时 > 哪位高手可以给我一个好的算法啊 > 我的邮箱是 > licostar_109@hotmail.com > 谢谢啦 _int64 C(unsigned int m,unsigned int n) { if(n==0) return 1; if(n==1) return m; if(n>(m>>1)) return C(m,m-n); return C(m-1,n-1)*m/n; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator