#include <bits/stdc++.h>#define int long long int#define endl '\n'using namespace std;signed main(){int t;cin>>t;while(t--){int n,x,y,i;cin>>n;string s;cin>>s;cin>>x>>y;int a[n+1],b[n+1];a[0]=0;b[0]=0;for(i=0;i<n;i++){if(s[i]=='E'){a[i+1]=a[i]+0;}else if(s[i]==Read more
#include <bits/stdc++.h> #define int long long int #define endl '\n' using namespace std; signed main() {
The Rumbling is a hypothetical cataclysmic event involving Karl Fritz’s Wall Titans marching across the Earth, destroying all life upon …
#include <bits/stdc++.h>#define int long long int#define endl '\n'using namespace std;signed main(){int t;cin>>t;while(t--){int n,x,y,i;cin>>n;string s;cin>>s;cin>>x>>y;int a[n+1],b[n+1];a[0]=0;b[0]=0;for(i=0;i<n;i++){if(s[i]=='E'){a[i+1]=a[i]+0;}else if(s[i]==Read more