We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655231b commit 0d2cd5bCopy full SHA for 0d2cd5b
707A - Brain's Photos.cpp
@@ -0,0 +1,46 @@
1
+#include<bits/stdc++.h>
2
+using namespace std;
3
+
4
+// Code Written By: Vikash Patel
5
6
+int main()
7
+{
8
+ int n,m;
9
+ cin>>n>>m;
10
+ char pixel[n][m];
11
+ for(int i=0;i<n;i++)
12
+ {
13
+ for(int j=0;j<m;j++)
14
15
+ cin>>pixel[i][j];
16
+ }
17
18
19
20
+ bool color=false;
21
22
23
24
25
+ if(pixel[i][j]=='C' || pixel[i][j]=='M' || pixel[i][j]=='Y')
26
27
+ color=true;
28
+ break;
29
30
31
32
33
34
+ if(color)
35
+ cout<<"#Color"<<endl;
36
+ else
37
+ cout<<"#Black&White"<<endl;
38
+}
39
40
41
42
43
44
45
46
0 commit comments