Files
python/TangDou/LuoGuBook/P5722.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

12 lines
166 B
C++

#include <bits/stdc++.h>
using namespace std;
int s, n;
int main() {
cin>>n;
s = n;
while (n--)s += n;
cout << s << endl;
return 0;
}