My issue
I am unable to understand the problem itself like what it is really asking me to do what we have to print and what is this x like how are we supposed to generate x and solutions over here seems very complex could anyone please elaborate the problem the problem is skill game the code I have written is wrong plss someone just elaborate the problem and provide a better code
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t){
int n;
cin>>n;
string g;
cin>>g;
//n is len of g
vector<int>v;
for(int i=0;i<n;i++){
int s;
cin>>s;
v.push_back(s);
}
for(int i=0;i<n;i++){
if(g[i]=='A'){
v[i]==
}
}
t--;
}
}
Problem Link: Skill Game Practice Coding Problem