提交时间:2024-11-01 15:31:03

运行 ID: 54955

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