摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1290思路:n条直线最多能将一个平面分成几个区域其递推公式即为:f(n)=f(n-1)+n;递推一下,就得到f(n)=1/2*(n*n+n)+1;n个平面最多能将一个空间分成几个区域递推公式即为:g(n)... 阅读全文
posted @ 2015-10-28 11:34 pter 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1249part=3*s*(s-1)+2 1 #include 2 #include 3 main() 4 { 5 int n,s,i,p,m; 6 while(~scanf("%d",&n... 阅读全文
posted @ 2015-10-28 11:29 pter 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1279 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inc... 阅读全文
posted @ 2015-10-28 11:21 pter 阅读(119) 评论(0) 推荐(0) 编辑