提交时间:2023-04-29 18:31:19

运行 ID: 16067

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