HDU 2050 折线分割平面

题目:http://acm.hdu.edu.cn/showproblem.php?pid=2050

数学题,递推题,好吧,这种题我最不会了。看网上的分析A了,大概遇到相同的还是不会,数学题还是给队友吧

#include <stdio.h>

int main(void)
{
    int n, i;
    scanf("%d", &i);
    while (i-- && scanf("%d", &n))
        printf("%d
", 2*n*n-n+1);

    return 0;
}

 

原文地址:https://www.cnblogs.com/destino74/p/3332031.html