题目名字 修剪灌木 实现步骤 代码 #include<bits/stdc++.h> using namespace std; int main() { int n;cin>>n; for(int i=1;i<=n;i++)cout<<2*max(n-i,i-1)<<endl; }