Untitled
unknown
plain_text
2 years ago
398 B
8
Indexable
#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";
}
Editor is loading...
Leave a Comment