提交时间:2024-03-29 15:28:31

运行 ID: 44208

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