int f[N]; f[p]=2*p; for(int i=p+1;i<=n;i++)f[i]=f[i-1]+i;
平面分割直线2
原文:https://www.cnblogs.com/Adventurer-H/p/11241879.html