序列求和
#include<iostream> using namespace std; int main(){ long long int n; cin>>n; cout<<(1+n)*n/2<<endl; return 0; }