diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-03-25 15:43:13 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-03-25 15:43:13 +0200 |
| commit | 41e4a123e8a63a0a33bc7c89569731c2daf65d95 (patch) | |
| tree | 35be45dcccfdd37c7a269b42ae55e07d96b47d76 /codeforces/Stripes | |
| parent | 6411812a630e4230af27705d11f30405fbd83a68 (diff) | |
| download | competitive-programming-41e4a123e8a63a0a33bc7c89569731c2daf65d95.tar.xz competitive-programming-41e4a123e8a63a0a33bc7c89569731c2daf65d95.zip | |
Solve some problems
Diffstat (limited to 'codeforces/Stripes')
| -rwxr-xr-x | codeforces/Stripes/main.cpp | 12 |
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() { |
