Run ID:74320

提交时间:2024-05-25 09:18:15

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