题解:f[i][1]表示用1种颜色涂完i行费用
#include <iostream>
#include <cstdio>
using namespace std;
#define INF 0x3f3f3f3f
int n,m;
int w[100],b[100],r[100];
int f[100][4];
char s[100][100];
void init()
{
题解:f[i][1]表示用1种颜色涂完i行费用
#include <iostream>
#include <cstdio>
using namespace std;
#define INF 0x3f3f3f3f
int n,m;
int w[100],b[100],r[100];
int f[100][4];
char s[100][100];
void init()
{