提交时间:2024-11-01 15:34:43

运行 ID: 54961

#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int s=n*(n+1)/2; cout<<s; }