CF 171B - A star

题目:171B - A star

思路:递推

 

#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
using namespace std;
int main()
{
    long long n;
    cin>>n;
    cout<<6*n*(n-1)+1<<endl;
    return 0;
}
View Code

 

posted @ 2013-07-22 21:51  over_flow  阅读(167)  评论(0编辑  收藏  举报