// Source: https://usaco.guide/general/io //who needs macros when you have usaco #include using namespace std; #define int long long #define fastnuces ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);int t = 1; void solve(){ int n; cin>>n; string s; cin>>s; vectora(n); for(int i=0;i>a[i]; int q; cin>>q; while(q--){ int k; cin>>k; int sm=0,mx=0,l=0,cnt=0; for(int r=0;rk){ sm-=a[l]; if(s[l]=='E')cnt--; l++; } mx=max(mx,cnt); } cout<=1;--i)dfs(i); //cin>>t; while(t--){ solve(); } }