#include <string>
#include <vector>
using namespace std;
vector<vector<int>> solution(int n) {
vector<vector<int>> answer;
vector<int> ring;
int i;
int seed=n%2;
int end=0;
for(i=0;i<n;i++){
end=end*2+1;
ring.push_back(1);
}
for(i=0;i<end;i++){
answer.push_back({ring[0],seed});
}
return answer;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: