提交时间:2019-08-17 06:37:29

运行 ID: 209

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