题目链接
0表示白
1表示红
2表示蓝
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll dp[50][40],n;
ll dfs(int pos,int state){
if(pos==0) return 1;
if(dp[pos][state]!=-1) return dp[pos][
题目链接
0表示白
1表示红
2表示蓝
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll dp[50][40],n;
ll dfs(int pos,int state){
if(pos==0) return 1;
if(dp[pos][state]!=-1) return dp[pos][