Untitled
unknown
c_cpp
2 years ago
402 B
2
Indexable
using namespace std; #include <iostream> int main() { int n; int m; int count = 0; char c; cin >> n >> m; for (int i = 1; i <= n * m; i++) { cin >> c; if (c == 'W') { count += 1; } if (c == 'G') { count += 1; } if (c == 'B') { count += 1; } } if (count == n * m) { cout << "#Black&White"; } if (count < n * m) { cout << "#Color"; } }
Editor is loading...
Leave a Comment