提交时间:2019-07-30 17:30:27

运行 ID: 179

#include<stdio.h> int main() { int n; while (scanf("%d", &n) != EOF) { printf("%d\n",(1+n)*n/2); } return 0; }