707A codeforces - Brains Photos



707A codeforces


Brains Photos

Solution in C++

#include <iostream>

using namespace std;

int main()

{

    int a,b,c=0;

    cin>>a>>b;

    for(int i=0;i<a*b;i++){

        char t;

        cin>>t;

        if(t=='C' || t=='M' || t=='Y')c++;

    }

    if(c) cout<<"#Color\n";

    else cout<<"#Black&White\n";

    return 0;


}

Share on Google Plus

About Mohamed Sobhi

My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo
My hobbies is programming ,and web development ,playing chess and writing horror stories.
    Blogger Comment
    Facebook Comment

0 التعليقات:

إرسال تعليق