提交时间:2024-10-27 15:39:12

运行 ID: 54360

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