aboutsummaryrefslogtreecommitdiff
path: root/codeforces/Stripes/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'codeforces/Stripes/main.cpp')
-rwxr-xr-xcodeforces/Stripes/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/codeforces/Stripes/main.cpp b/codeforces/Stripes/main.cpp
index d9454c7..ccd20bd 100755
--- a/codeforces/Stripes/main.cpp
+++ b/codeforces/Stripes/main.cpp
@@ -23,6 +23,18 @@ const int dx[4]{1, 0, -1, 0};
const int dy[4]{0, 1, 0, -1};
void solve() {
+ vector<string> v(8);
+ bool lastRed = false;
+ for (auto s : v) {
+ cin >> s;
+ int reds = count(all(s), 'R');
+ if (reds == 8) {
+ lastRed = true;
+ }
+ }
+ cout << (lastRed ? 'R' : 'B') << '\n';
+
+
}
int main() {