#include using namespace std; int main(){ int n; cin >> n; vector genes(n); for(int genes_i = 0; genes_i < n; genes_i++){ cin >> genes[genes_i]; } vector health(n); for(int health_i = 0; health_i < n; health_i++){ cin >> health[health_i]; } int s; cin >> s; vector ans(s); for(int a0 = 0; a0 < s; a0++){ int first; int last; int total=0; string d; cin >> first >> last >> d; int len=d.length(); int j=first;int l=last; for(int i=0;i