My issue
what was wrong in?
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t,n;
cin>>t;
while(t--){
cin>>n;
long int x;
cin>>x;
string s;
cin>>s;
int c1=0;
for(int i=0;i<n;i++){
if(s[i]=='R') c1++;
}
if(c1>n-c1){
cout<<c1+1<<endl;
}else{
cout<<n-c1+1<<endl;
}
}
return 0;
}
Problem Link: TSTROBOT Problem - CodeChef