提交时间:2023-01-11 08:56:00
运行 ID: 3796
#include <iostream> using namespace std; int main(){ int n; while(cin>>n){ cout<<n*(n+1)/2<<" "; } return 0; }