Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 31st, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. #include<string>
  3. using namespace std;
  4. string s;
  5. int n,m,sum,K;
  6. int main(){
  7. cin>>n>>m;
  8. for(int i=0;i<n;i++){
  9. for(int j=0;j<m;j++){
  10.     cin>>s[j];
  11.     if (s[j]=='C'||s[j]=='M'||s[j]=='Y'){ cout<<"#Color";K++;break;}
  12.     else sum++;
  13. }   if(K!=0)
  14.     break;
  15. } if(sum==n*m) cout<<"#Black&White";
  16.  
  17.  return 0;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top