Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
398 B
1
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
	char c;
	int n, m;
	int black_white = 0;
	int color = 0;
	cin >> n >> m;
	for (int i = 1; i <= n; i++) {
		for (int j = 0; j < m; j++) {
			cin >> c;
			if (c == 'C' or c == 'M' or c == 'Y') {
				color += 1;
			}
			else black_white = 0;
		}
			
	}
	if (color == 0) cout << "#Black&White";
	else cout << "#Color";
}
Leave a Comment