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

题目链接

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

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