c++
2025-05-12 19:39:42
发布于:广东
8阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,n;
cin>>t;
while(t--)
{
cin>>n;
cout<<1 + n * (n + 1) / 2 << endl;
}
return 0;
}
这里空空如也
2025-05-12 19:39:42
发布于:广东
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,n;
cin>>t;
while(t--)
{
cin>>n;
cout<<1 + n * (n + 1) / 2 << endl;
}
return 0;
}
这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个