Run ID:129489
提交时间:2025-08-26 18:40:13
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { printf("%d\n", n * (n + 1) / 2 ); } return 0; }