很水拉 为了记规律- -
php
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1249spa
分隔平面公式blog
下面是我本身查找的公式,没有推到过程,但能够给一些连接ci
http://hi.baidu.com/matrixwhisper/item/6bfe48522351e0d19e266717
http://qianmacao.blog.163.com/blog/static/203397180201212193457357
直线:f(n)=f(n-1)+n=1+n(n-1)/2;static
折线:f(n)=f(n-1)+(4n-3)=2*n*n-n+1;word
三角形:f(n)=f(n-1)+6(n-1)=3n(n-1)+2;di
椭圆:f(n)=f(n-1)+2(n-1)=2+n(n-1);while
#include
#include
#include
usingnamespace std;
intmain(){
}