http://acm.hdu.edu.cn/showproblem.php?pid=1020
过了的就是好孩子。。。。。。。。
1 #include<stdio.h> 2 #include<math.h> 3 #include<string.h> 4 #include<stdlib.h> 5 #include<iostream> 6 #include<queue> 7 using namespace std; 8 const int N=10005; 9 char a[N],b[N]; 10 int main() 11 { 12 //freopen("in.txt","r",stdin); 13 int n; 14 cin>>n; 15 while(n--) 16 { 17 memset(a,0,sizeof(a)); 18 memset(b,0,sizeof(b)); 19 scanf("%s",a); 20 int len=strlen(a); 21 if(len==1) 22 { 23 printf("%s ",a); 24 continue; 25 } 26 int t=0,count=0; 27 for(int i=0;i<len;i++) 28 { 29 if(a[i+1]!='