提交时间:2024-04-07 14:39:36

运行 ID: 44868

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