提交时间:2025-07-12 10:21:49
运行 ID: 331596
#include<bits/stdc++.h> using namespace std; int main(){ int x; while(cin>>x) cout<<(x+1)*x/2<<endl; return 0; }