提交时间:2023-01-06 21:08:34
运行 ID: 3381
#include<stdio.h> int main() { int n; while (scanf("%d", &n) != EOF) { printf("%d\n", n * (n + 1) / 2 ); } return 0; }