提交时间:2023-01-11 10:37:25

运行 ID: 3838

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