提交时间:2025-12-05 15:45:07
运行 ID: 75317
#include<bits/stdc++.h> using namespace std; int main() { int n,tot=0; cin >> n; for(int i =1;i<=n;i++) { tot+=i; } cout << tot; return 0; }