提交时间:2023-12-08 15:27:13

运行 ID: 33237

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