You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
441 B
C++

#include <cctype>
#include <cstdio>
int main()
{
int n, m;
char ch;
bool flag = false;
scanf("%d%d", &n, &m);
for (int i = 0; i < n * m; i++)
{
while (!isalpha(ch = getchar()))
;
ch = toupper(ch);
if (ch == 'C' || ch == 'M' || ch == 'Y') {
flag = true;
break;
}
}
printf(flag ? "#Color" : "#Black&White");
return 0;
}