Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
406 B
2
Indexable
Never

#include <iostream>
#include <string>
using namespace std;

int main()
{
	int color = 0;
	int n = 0;
	int m = 0;
	cin >> n >> m;
	
	for (int i = 1; i <= n; i++) {
		for (int j = 0; j <= m; j++) {
			char k;
			cin >> k;
			if (k == 'C' or k == 'M' or k =='Y') {
				color = 1;

			}
			
		}
	}
	if (color == 1) {
		cout << "#Color";
	}
	else cout<<"#Black&White";
		
	}


Leave a Comment