水题

#include<cstdio>
int main()
{ int x1, x2, x3, u, h;
int n;
while (~scanf("%d", &n))
{
while (n--)
{
char s[];
scanf("%s", s);
scanf("%d%d%d%d%d", &x1, &x2, &x3, &u, &h);
int fen = x1 + * x2 + * x3 + u + h;
//printf("%d\n", x1 + 2 * x2 + 5 * x3 + u + h);
if ((s[] == 'm'&&fen >= ) || (s[] == 'f'&&fen >= ))
printf("Welcome\n");
else
{
if (s[] == 'm') printf("%d\n", - fen);
else printf("%d\n", - fen);
}
}
}
return ;
}
04-30 05:14