hdu1249三角形

時間長了就容易忘,又複習了一遍

https://blog.csdn.net/vinacky/article/details/8958326

各種切割平面問題

#include<iostream>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        cout<<3*n*n-3*n+2<<endl;
    }
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章