提交时间:2024-01-19 16:12:44

运行 ID: 37211

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