给出一个n*m的图,判定是不是黑白图像,黑白图像是只含有W,B,Y的一种或多种
要认真读题,很多人hack成功,因为很多人没看到Y
#include<bits/stdc++.h>
using namespace std;
#define cl(a,b) memset(a,b,sizeof(a))
#define fastIO ios::sync_with_stdio(false);cin.tie(0);
#define LL long long
#define pb push_back
#define gcd __gcd
#define For(i,j,k) for(int i=(j);i<k;i++)
#define lowbit(i) (i&(-i))
#define _(x) printf("%d\n",x)
const int maxn = 3e6+10;
const int inf = 1 << 28;
int main(){
// fastIO;
int n,m;
cin>>n>>m;
string s;
bool ok2 = false;
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cin>>s;
if(s[0]=='C'||s[0]=='M'||s[0]=='Y')ok2 = true;
}
}
if(!ok2){
puts("#Black&White");
}
else puts("#Color");
return 0;
}