initial commit
This commit is contained in:
parent
a662982037
commit
e49e17ea78
28
1742C Stripes/1742C.cpp
Normal file
28
1742C Stripes/1742C.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
using ll = long long;
|
||||
|
||||
void solve()
|
||||
{
|
||||
bool red=false;
|
||||
for(int i=0; i<8; ++i)
|
||||
{
|
||||
string s;
|
||||
cin>>s;
|
||||
if(s=="RRRRRRRR") red=true;
|
||||
}
|
||||
if(red) cout<<"R"<<endl;
|
||||
else cout<<"B"<<endl;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
ios_base::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
int TC = 1;
|
||||
cin >> TC;
|
||||
cin.ignore();
|
||||
while (TC--)
|
||||
solve();
|
||||
}
|
Loading…
Reference in New Issue
Block a user