提交时间:2024-10-25 14:38:28

运行 ID: 53751

#include <bits/stdc++.h> using namespace std; int main() { int n, num = 0; cin >> n; int max = -10000000; int min = 10000000; for (int i = 1; i <= n; i++) { num += i; } cout<<num; }