随笔分类 -  BestCoder

摘要:Problem Descriptiondxy has a collection of a series of books called “The Stories of SDOI”,There are n(n≤19) books in this series.Every book has a numb... 阅读全文
posted @ 2015-10-11 13:12 doodle777 阅读(205) 评论(0) 推荐(0)
摘要:Problem Description今年暑假杭电ACM集训队第一次组成女生队,其中有一队叫RPG,但做为集训队成员之一的野骆驼竟然不知道RPG三个人具体是谁谁。RPG给他机会让他猜猜,第一次猜:R是公主,P是草儿,G是月野兔;第二次猜:R是草儿,P是月野兔,G是公主;第三次猜:R是草儿,P是公主,... 阅读全文
posted @ 2013-08-17 15:44 doodle777 阅读(259) 评论(0) 推荐(0)
摘要:Catalan数 中文:卡特兰数 原理: 令h(1)=1,h(0)=1,catalan数满足递归式: h(n)= h(1)*h(n-1) + h(2)*h(n-2) + ... + h(n-1)h(1) (其中n>=2) 另类递归式: h(n)=((4*n-2)/(n+1))*h(n-1... 阅读全文
posted @ 2013-08-10 14:28 doodle777 阅读(292) 评论(0) 推荐(0)