提交时间:2024-09-20 19:29:57
运行 ID: 51302
#include<bits/stdc++.h> using namespace std; int main() { int x; cin >> x; while(scanf("%d",&n)!=EOF){ printf("%d\n",(n+1)*n/2) } return 0; }