Untitled

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

int main()
{
	int n;
	int m;
	int count = 0;
	char c;
	cin >> n >> m;
	for (int i = 1; i <= n * m; i++) {
		cin >> c;
		if (c == 'W') {
			count += 1;
		}
		if (c == 'G') {
			count += 1;
		}
		if (c == 'B') {
			count += 1;
		}
	}
	if (count == n * m) {
		cout << "#Black&White";
	}
	if (count < n * m) {
		cout << "#Color";
	}
}
Leave a Comment