#include <bits/stdc++.h>
using namespace std;
signed main() {
cout << 1 << '\n';
int n = 1e5;
cout << n << '\n';
cout << "1 1 ";
for (int i = 2, j = 3; j <= n; i += 2) {
cout << i << ' ';
j ++ ;
if (j <= n) cout << i << ' ', j ++ ;
}
return 0;
}差不多长这样:
1
100000
1 1 2 2 4 4 6 6 8 8 10 10 ...