浙江省赛水题 K题
View Code
1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main() 5 { 6 int ncases; 7 char b[21], g[21], x[20]; 8 9 scanf("%d",&ncases); 10 while( ncases-- ) 11 { 12 scanf("%s%s%s",b,g,x); 13 printf("%s will survive\n",g); 14 } 15 system("pause"); 16 return 0; 17 } 18 19