#include<iostream>
#include<sstream>
#include<stdio.h>
#include<stdlib.h>
#include<string>
#include<string.h>
#include<algorithm>
#include<math.h>
using namespace std;
int main()
{
int t,x,y,z,w,n,m,a,d,poison;
stringstream stream;
string s;
scanf("%d",&t);
while(t--)
{
scanf("%d%d%d%d%d%d ",&x,&y,&z,&w,&n,&m);
getline(cin,s);
poison=0;
stream.clear();
stream<<s;
while(stream>>a)
{
m-=n*poison;
if(m<=0)
break;
switch(a)
{
case 0:break;
case 1:m+=x;break;
case 2:m+=y;break;
case 3:m-=z;break;
case 4:m-=w;poison++;break;
}
}
if(m<=0)
printf("bye~Rabbit\n");
else
printf("%dg\n",m);
}
return 0;
}
直接break那后面的数据肿么办