/*注意以下几点*/
1-在控制谁先攻击的时候准确运用标记变量。
2-break的运用。
3-特殊情况特判别。
#include <stdio.h>
#include <stdlib.h>#include <string.h>
#define blue 1
#define stone -1
int main()
{
int g1,f1,s1,x1,g2,f2,s2,x2;
char weap1[200],weap2[200],fj1[200],fj2[200];
while(scanf("%d %d %d %d %s %s %d %d %d %d %s %s",&g1,&f1,&s1,&x1,weap1,fj1,&g2,&f2,&s2,&x2,weap2,fj2)!=EOF)
{
if(strcmp(weap1,"DevineRapier")==0)
{
g1+=10;
s1-=5;
}
if(strcmp(weap1,"InfinityBlade")==0)
{
g1+=25;
s1-=25;
}
if(strcmp(weap1,"TheSwordOfPBH")==0)
{
g1+=50;
s1-=10;
}
if(strcmp(fj1,"Immortal")==0)
{
f1+=15;
s1-=5;
}
if(strcmp(fj1,"Ragnarok")==0)
{
f1+=25;
s1-=25;
}
if(strcmp(fj1,"HuaJiShield")==0)
{
f1+=50;
s1-=1;
}
if(strcmp(weap2,"DevineRapier")==0)
{
g2+=10;
s2-=5;
}
if(strcmp(weap2,"InfinityBlade")==0)
{
g2+=25;
s2-=25;
}
if(strcmp(weap2,"TheSwordOfPBH")==0)
{
g2+=50;
s2-=10;
}
if(strcmp(fj2,"Immortal")==0)
{
f2+=15;
s2-=5;
}
if(strcmp(fj2,"Ragnarok")==0)
{
f2+=25;
s2-=25;
}
if(strcmp(fj2,"HuaJiShield")==0)
{
f2+=50;
s2-=1;
}
if((g1-f2<0)&&(g2-f1<0))
{
printf("bLue Stone have to give up!\n");
}
else
{
int turn=blue;
while(x1>0&&x2>0)
{
if(turn==blue)
{
x2-=(g1-f2);
if(x2<=0) break;
x1-=(g2-f1);
if(x1<=0) break;
}
if(turn==stone)
{
x1-=(g2-f1);
if(x1<=0) break;
x2-=(g1-f2);
if(x2<=0) break;
}
turn*=-1;
if(s1>s2)
{
x2-=(g1-f2);
if(x2<=0) break;
}
if(s2>s1)
{
x1-=(g2-f1);
if(x1<=0) break;
}
}
if(x1<=0) printf("Stone wins!\n");
else if(x2<=0) printf("bLue wins!\n");
}
}
return 0;
}