0w1

CFR 707 A. Brain's Photos ( Ad hoc )

Problem - A - Codeforces
這題真的很簡單,我一分鐘就傳了。但因為太有紀念意義了。
我竟然漏看 grey也算,pretest全過,然後被 hack了,太智障了。

void solve(){
    int N, M; cin >> N >> M;
    for( int i = 0; i < N; ++i )
        for( int j = 0; j < M; ++j ){
            string s; cin >> s;
            if( s[ 0 ] != 'B' and s[ 0 ] != 'W' and s[ 0 ] != 'G' ){
                cout << "#Color\n";
                return;
            }
        }
    cout << "#Black&White\n";
}