题目: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; }