提交时间:2025-10-31 20:16:49
运行 ID: 72424
#include <iostream> using namespace std; int main() { int n; while (cin >> n){ cout<<n*(n + 1)/2; } return 0; }