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