正文
增加 2 行删除 2 行
7 行未改动8910111213141516173 行未改动7 行未改动然后根据题意可得公式:$n*(n+1)/2$```cpp#include<bits/stdc++.h>//万能头文件int main(){int n; std::cin>>n;//输入3 行未改动7 行未改动8910111213141516173 行未改动7 行未改动然后根据题意可得公式:$n*(n+1)/2$```cpp#include<bits/stdc++.h>//万能头文件int main(){int n; std::cin>>n;//输入3 行未改动