From e49e17ea78869b66810ed07444c9726dfe2ad6cd Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Sun, 18 Jun 2023 01:52:30 +0600 Subject: [PATCH] initial commit --- 1742C Stripes/1742C.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 1742C Stripes/1742C.cpp diff --git a/1742C Stripes/1742C.cpp b/1742C Stripes/1742C.cpp new file mode 100644 index 0000000..f17fe2a --- /dev/null +++ b/1742C Stripes/1742C.cpp @@ -0,0 +1,28 @@ +#include +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"<> TC; + cin.ignore(); + while (TC--) + solve(); +} \ No newline at end of file