浙江省赛水题 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                      
posted @ 2012-04-17 22:30  zhongya  阅读(91)  评论(0编辑  收藏  举报