提交时间:2024-09-20 15:36:10
运行 ID: 51232
#include<bits/stdc++.h> using namespace std; int main() { int a; for (int i = m;i>=n;i-=2){ cin >> a; cout << n*(n+1)/2; } cin >> a; cout << n*(n+1)/2; return 0; }