提交时间:2024-11-01 15:26:26

运行 ID: 54950

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