Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #include<string>
- using namespace std;
- string s;
- int n,m,sum,K;
- int main(){
- cin>>n>>m;
- for(int i=0;i<n;i++){
- for(int j=0;j<m;j++){
- cin>>s[j];
- if (s[j]=='C'||s[j]=='M'||s[j]=='Y'){ cout<<"#Color";K++;break;}
- else sum++;
- } if(K!=0)
- break;
- } if(sum==n*m) cout<<"#Black&White";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement