题目传送门:http://codeforces.com/contest/715/problem/A
官方题解:http://codeforces.com/blog/entry/47169
这™构造题,又没有想出来QAQ
考验人类智慧的东西,怎么写题解?
还是去看官方题解吧…
#include<bits/stdc++.h> #define LL long long using namespace std; int main(){ int n; cin>>n; cout<<2<<endl; for (LL i=2;i<=n;i++) cout<<i*(i+1)*(i+1)-i+1<<endl; return 0; }
Very efficiently written article. It will be helpful to everyone who usess it, including myself. Keep up the good work – can’r wait to read more posts.
I’m really loving the theme/design of your site. Do you ever run into any web browser compatibility problems? A couple of my blog visitors have complained about my website not working correctly in Explorer but looks great in Chrome. Do you have any advice to help fix this issue?