hdu 2050 折线分割平面

这个分割平面的问题挺有意思的,一不小心找到了个总结,也偷懒一下,详见:各种平面分割问题总结

  题目传送门

#include<stdio.h>
int main()
{
    long n;
    __int64 a;
    scanf("%ld",&n);
    while(n--)
    {
        scanf("%I64d",&a);
        printf("%I64d\n",2*a*a-a+1);
    }
    return 0;
}
原文地址:https://www.cnblogs.com/quantumplan/p/3070649.html