#include using namespace std; #define rep(i,n) for(int i=0;i status,int cur)->void{ if(cur==n){ judge(status); return; } rep1(i,3){ status[cur]=i; rec(rec,status,cur+1); } }; rec(rec,vector(n,0),0); cout<<"No"<<"\n"; return 0; }