【Henu ACM Round#20 E】Star

【链接】 我是链接,点我呀:)
【题意】

在这里输入题意

【题解】
找规律。
1,13,37....
6n(n-1) + 1

【代码】


#include <bits/stdc++.h>
#define ll long long
using namespace std;

ll n;

int main(){
    ios::sync_with_stdio(0),cin.tie(0);
    cin >>n;
    cout<<6*n*(n-1) + 1<<endl;
    return 0;
}
原文地址:https://www.cnblogs.com/AWCXV/p/8404361.html