Run ID:148067
提交时间:2026-02-09 16:29:22
#include<iostream> using namespace std; int main(){ int a; while(cin>>a){ cout<<a*(a+1)/2<<endl; } return 0; }