Run ID:4105

提交时间:2024-08-03 15:24:12

#include <iostream> using namespace std; int main() { int n; while (cin>>n) { cout<<n*(n+1)/2<<endl; continue; } return 0; }