提交时间:2022-12-04 17:29:00
运行 ID: 2231
#include<bits/stdc++.h> using namespace std; int main() { int n; while (scanf("%d",&n) != EOF) printf("%d\n", (n + 1) * n / 2); return 0; }