Untitled
Anonymous
c_cpp
11/16/2023 6:07 PM
544 B
13
Indexable
#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";
}
Editor is loading...
Leave a Comment