标签:
#include<cstdio>
using namespace std;
typedef long long ll;
int main(){
int n;
scanf("%d",&n);
ll ans = (3 + 3 *(ll)n)*n + 1;
printf("%I64d\n",ans);
return 0;
}
[2016-04-14][codeforces][630][D][Hexagons!]
标签:
原文地址:http://www.cnblogs.com/qhy285571052/p/c15034be613b2558171e98ed683cf50b.html