提交时间:2023-10-14 21:39:32
运行 ID: 28502
#include<iostream> using namespace std; int main(){ int n; while (scanf("%d",&n) !=EOF) printf("%d\n",(n+1)*n/2); return 0; }