codeforces #368 div 2 A. Brain's Photos (暴力)

题目链接

。。。这题也能成hack题。。。。有毒啊。。然后我room里所有人都写对了。。。是我看这道题看得太早了?

 1/* ***********************************************
 2Author :111qqz
 3Created Time :2016年08月20日 星期六 21时01分57秒
 4File Name :code/cf/#368/A.cpp
 5************************************************ */
 6
 7#include <cstdio>
 8#include <cstring>
 9#include <iostream>
10#include <algorithm>
11#include <vector>
12#include <queue>
13#include <set>
14#include <deque>
15#include <map>
16#include <string>
17#include <cmath>
18#include <cstdlib>
19#include <ctime>
20#define fst first
21#define sec second
22#define lson l,m,rt<<1
23#define rson m+1,r,rt<<1|1
24#define ms(a,x) memset(a,x,sizeof(a))
25typedef long long LL;
26#define pi pair < int ,int >
27#define MP make_pair
28
29using namespace std;
30const double eps = 1E-8;
31const int dx4[4]={1,0,0,-1};
32const int dy4[4]={0,-1,1,0};
33const int inf = 0x3f3f3f3f;
34const int N=105;
35int n,m;
36int main()
37{
38	#ifndef  ONLINE_JUDGE 
39	freopen("code/in.txt","r",stdin);
40  #endif
41
42	    cin>>n>>m;
43	    bool ok = false;
44	    for ( int i = 1 ; i <= n ; i++)
45		for ( int j = 1 ; j <=m ; j++ )
46		{
47		    char col;
48		    cin>>col;
49		    if (col=='C'||col=='M'||col=='Y') ok = true;
50		}
51	    if (ok) cout<<"#Color"<<endl;
52	    else cout<<"#Black&White"<<endl;
53
54  #ifndef ONLINE_JUDGE  
55  fclose(stdin);
56  #endif
57    return 0;
58}