Advertisement
rengetsu

Codeforces_707A

Jul 15th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. // Codeforces 707A
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int n, m;
  10.     char symb;
  11.     bool rez = false;
  12.     cin >> n >> m;
  13.     for( int i = 0; i < n; i++ )
  14.     {
  15.         for( int y = 0; y < m; y++ )
  16.         {
  17.             cin >> symb;
  18.             if( symb == 'C' || symb == 'M' || symb == 'Y' )
  19.             {
  20.                 rez = true;
  21.             }
  22.         }
  23.     }
  24.     if( rez == true ){ cout << "#Color"; }
  25.     else{cout << "#Black&White"; }
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement