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