13 lines
252 B
C++
13 lines
252 B
C++
// lanqiao 2107 修剪灌木(数学优化)
|
|
#include<bits/stdc++.h>
|
|
using namespace std;
|
|
int main(){
|
|
int n; cin >> n;
|
|
for(int i = 1; i <= n; i++){
|
|
cout << max(i - 1, n - i) * 2 << endl;
|
|
}
|
|
return 0;
|
|
}
|
|
/* test samples -> 4 2 4
|
|
3
|
|
*/ |