Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
369 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int a, b, m = 0;
	char c;

	cin >> a >> b;
	//c - 67 , m - 77,  - 89
	for (int i = 0; i < a; i++) {
		for (int j = 0; j < b; j++) {
			cin >> c;
			if (c == 67 or c == 77 or c == 89) {
				m++;
			}
		}
	}
	if (m > 0) {
		cout << "#Color";
	}
	else {
		cout << "#Black&White";
	}


}

Leave a Comment