semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{   
   double m,c=0,d;
   int i,k,a,b,s=0;
   char s1[550],s2[550];
   scanf("%lf",&m);
   scanf("%s%s",s1,s2);
   a=strlen(s1);
   b=strlen(s2);
   if(a!=b)
   {
           printf("error\n");
   }
   if(a==b)
   {
        for(i=0;i<a;i++)
        {
            if(s1[i]!='A'&&s1[i]!='C'&&s1[i]!='G'&&s1[i]!='T')
            {
                   s++;
            }
        }
        for(i=0;i<b;i++)
        {
               if(s2[i]!='A'&&s2[i]!='C'&&s2[i]!='G'&&s2[i]!='T')
               {
                  s++;
               }
        }
        if(s==0)
        {
         for(i=0;i<a;i++)
         {
               if(s1[i]==s2[i])
               {
                  c++;
               }
         }
         d=c/a;
         if(d>=m)
         {
             printf("yes\n");
         }else
         {
             printf("no\n");
         }
        }
        if(s!=0)
        {
             printf("error\n");
        }
   }                       
	
   return 0;
}
main ()
{
	float a,f;
	int x,y,b=0,c=0;
	char d1[501],d2[501];
	scanf ("%f",&a);
	scanf ("%s",d1);
	scanf ("%s",d2);
	x=strlen(d1);y=strlen(d2);
	if (x!=y)
	printf ("error");
	else
	{for (int i=0;i<=x-1;i++)
     {if ((d1[i]=='A'||d1[i]=='T'||d1[i]=='C'||d1[i]=='G')&&(d2[i]=='A'||d2[i]=='T'||d2[i]=='C'||d2[i]=='G'))
  		 {if (d1[i]==d2[i])
		   b++;}
  	  else
  	  {c=1;break;}		 		 
     }
    f=(float)b/(float)x;
    if (c==0&&f>a)
    printf ("yes");
    else if (c==0&&f<=a)
    printf ("no");
    else 
    printf ("error");
	}
}
int main(){
int c=0,m=0,i,a,b,j,z=1;
double n,q=0,w;
char x[505],y[505];
scanf("%lf",&n);
scanf("%s",x);
scanf("%s",y);
a=strlen(x);
b=strlen(y);
if(a!=b){z=0;}
else{for(i=0;i<a;i++){if((x[i]=='A'||
						  x[i]=='T'||
						  x[i]=='C'||
						  x[i]=='G')&&
						  (y[i]=='A'||
						  y[i]=='T'||
						  y[i]=='C'||
						  y[i]=='G'))z=1;else z=0;}     
     }
if(z==0)printf("error");
if(z!=0){for(i=0;i<a;i++){if(x[i]==y[i])q++;}
        }
if(z!=0){w=q/a;if(w>=n)printf("yes");else printf("no");}
return 0;
}
int main(){
	double bi,p;
	int len1,len2,i,flag,s=0;
	char zfc[2][501];
	scanf("%lf",&bi);
	for(i=0;i<2;i++)
	{
		scanf("%s",zfc[i]);
	}
	len1=strlen(zfc[0]);
	len2=strlen(zfc[1]);
	if(len1!=len2)
	{
		flag=1;
	}
	else
	{
		for(i=0;i<len1;i++)
		{
		   if((zfc[0][i]!='A'&&zfc[0][i]!='T'&&zfc[0][i]!='G'&&zfc[0][i]!='C')||(zfc[1][i]!='A'&&zfc[1][i]!='T'&&zfc[1][i]!='G'&&zfc[1][i]!='C'))
		   {
			  flag=1;
		   }
		   
		   else
		   {
			 flag=0;
		   }
		}
	}
	if(flag==1)
	{
		printf("error");
	}
	else if(flag==0)
	{
		for(i=0;i<len1;i++)
		{
			if(zfc[0][i]==zfc[1][i])
			{
				s=s+1;
			}
			else
			{
				s=s;
			}
		}
		p=s*1.0/len1;
		if(p>bi)
		{
			printf("yes");
		}
		else
		{
			printf("no");
		}
	
	}
	return 0;
}
int main()
{
	float rate,rate0;
	int sum=0,len1,len2,i,tag=0;
	char base1[501],base2[501];
	cin>>rate>>base1>>base2;
	len1=strlen(base1);
	len2=strlen(base2);
	if(len1!=len2)
	{
		tag=1;
		goto pku;
	}
	for(i=0;i<len1;i++)
	{
		if(base1[i]!='A'&&base1[i]!='T'&&base1[i]!='C'&&base1[i]!='G'||base2[i]!='A'&&base2[i]!='T'&&base2[i]!='C'&&base2[i]!='G')
		{
			tag=1;
			goto pku;
		}
		if((int)base1[i]==(int)base2[i]) sum++;
		else continue;
	}
	rate0=(float)sum/len1;
	if(rate0>rate) cout<<"yes";
	else cout<<"no";
pku:if(tag) cout<<"error";
	return 0;
}
int main()
{
	char f[501],t[501];
	int i;
	double j=0,r=0,s=0;
	double n;
	scanf("%lf%s%s",&n,f,t);
	for(i=0;f[i]!='\0';i++)
	{
		j++;
	}
	for(i=0;t[i]!='\0';i++)
	{
		r++;
	}
	if(j!=r)
	{
		printf("error");
		return 0;
	}
    for(i=0;f[i]!='\0';i++)
	{
		if(f[i]!='A'&&f[i]!='T'&&f[i]!='C'&&f[i]!='G')
		{
			printf("error");
			return 0;
		}
	    if(t[i]!='A'&&t[i]!='T'&&t[i]!='C'&&t[i]!='G')
		{
			printf("error");
	        return 0;
		}
	}
	for(i=0;f[i]!='\0';i++)
	{
		if(f[i]==t[i])
		s++;
	}
	if(s/j>n)
	{
		printf("yes");
	}
	if(s/j<=n)
	{
		printf("no");
	}

	return 0;
}
int main()
{
	double a,j;
	int n,m,b=0,c=1,i,q;
	char s1[510],s2[510];
	scanf("%lf",&a);
	scanf("%s",s1);
	scanf("%s",s2);
	n=strlen(s1);
	m=strlen(s2);
	if(n!=m)
		c=0;	
	for(i=0;i<n;i++){
		if(s1[i]!='A'&&s1[i]!='T'&&s1[i]!='C'&&s1[i]!='G'){
			c=0;
			break;
		}
	}		
	for(q=0;q<m;q++){
		if(s2[q]!='A'&&s2[q]!='T'&&s2[q]!='C'&&s2[q]!='G'){
			c=0;
			break;
		}
	}
	for(i=0;i<n;i++){
		if(s1[i]==s2[i])
			b++;
	}
	j=(double)b/n;
	if(c==1){
		if(j>=a)
			printf("yes");
		else
			printf("no");
	}
	else
		printf("error");
	return 0;
}
int main(){int i,j=0;float x;char m[501],n[501];
scanf("%f",&x);
scanf("%s",m);scanf("%s",n);if(strlen(m)!=strlen(n)){printf("error");return 0;}
for(i=0;n[i];i++){if(m[i]!='A' && m[i]!='T' && m[i]!='C' && m[i]!='G' || (n[i]!='A' && n[i]!='T' && n[i]!='C' && n[i]!='G')){printf("error");return 0;}if(m[i]==n[i])j++;}
if(1.0*j/i>x)printf("yes");
if(1.0*j/i<x)printf("no");scanf("%d",&i);return 0;}
int main()
{
    double w;
    char s1[600],s2[600];
    int l1,l2,i,a;
    a=0;
    scanf("%lf\n",&w);
    scanf("%s\n",s1);
    scanf("%s\n",s2);
    l1=strlen(s1);
    l2=strlen(s2);
    if(l1!=l2){
               printf("error");}
    else{
         for(i=0;i<l1;i++){
                           if(!(s1[i]=='A'||s1[i]=='T'||s1[i]=='C'||s1[i]=='G')){
                                                                                    printf("error");
                                                                                    return 0;}}
         for(i=0;i<l1;i++){
                           if(!(s2[i]=='A'||s2[i]=='T'||s2[i]=='C'||s2[i]=='G')){
                                                                                    printf("error");
                                                                                    return 0;}}
         
         for(i=0;i<l1;i++){
                           if(s1[i]==s2[i]){
                                            a++;}
                                            }
         if((1.0*a)/l1>w){
                               printf("yes");}
         else{
               printf("no");}}
    return 0;
}
int main(){
   int n,m,i,j=0;
   double g,t;
   char a[501],b[501];
   scanf("%lf",&g);
   scanf("%s",a);
   scanf("\n");
   scanf("%s",b);
   n=strlen(a);
   m=strlen(b);
   if(n!=m){printf("error");}
   else{
       for(i=0;i<n;i++){
           if((a[i]=='A'||a[i]=='T'||a[i]=='C'||a[i]=='G')&&(b[i]=='A'||b[i]=='T'||b[i]=='C'||b[i]=='G')){
               if(a[i]==b[i]){j++;}
               else{;}
           }
           else{j=-1;printf("error");break;}
       }
       t=1.0*j/n;
       if(t>g){printf("yes");}
       else if(t<=g&&j!=-1){printf("no");}
   }  
return 0;
}
int main(){
	int i;
	char a[500],b[500];
	double x,y,k,n,m;
	scanf("%lf",&x);
	scanf("%s\n%s",a,b);
    n=strlen(a);
    m=strlen(b);
	for(i=0;i<n;i++){
		if(m==n&&(a[i]=='A'||a[i]=='G'||a[i]=='C'||a[i]=='T'||b[i]=='A'||b[i]=='G'||b[i]=='C'||b[i]!='T')){
			if(a[i]==b[i]){k=k+1;
			}
		}else {
				printf("error");
				return 0;
			}
	}
	y=k/n;
	if(y>x){
		printf("yes");
	}else{
		printf("no");
	}

return 0;
}
int main() {
	int b,c,d,i;
	double a,e,f;
	char n[501],m[501];
	scanf("%lf",&a);
	scanf("%s",n);
	scanf("%s",m);
	b=strlen(n);
	c=strlen(m);
	d=0;
	if(b!=c){
	 d++;
	}
	for(i=0;i<b;i++){
		if((n[i]!='A')&&(n[i]!='T')&&(n[i]!='C')&&(n[i]!='G')||(m[i]!='A')&&(m[i]!='T')&&(m[i]!='C')&&(m[i]!='G')){
			d++;
		}
	}
		if(d!=0){
			printf("error");
		}else{
			e=0;
		for(i=0;i<b;i++){
			if(n[i]==m[i]){
				e++;
			}
		 }
		 	f=e/b;
			 if(f>a){
			 	printf("yes");
			 }else{
			 	printf("no");
			 }
		}
  return 0;
}
int main()
{
	double n;
	scanf("%lf",&n);
	char a[502],b[502];
	int l1,l2;
	scanf("%s",&a);
	scanf("%s",&b);
	l1=strlen(a);
	l2=strlen(b);
	int i,k=0,flag;
	for(i=0;i<l1;i++)
		if(a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T')
		{flag=1;}
	for(i=0;i<l1;i++)
		if(b[i]!='A'&&b[i]!='G'&&b[i]!='C'&&b[i]!='T')
		{flag=1;}
	if(l1!=l2||flag==1)
	{
		printf("error");
	}
	else
	{
		for(i=0;i<l1;i++)
		{
			if(a[i]==b[i])
			{k++;}
		}
		if(1.0*k/l1>=n)
		{
			printf("yes");
		}
		else 
			printf("no");
	}
	return 0;                               
}
int main(){
	double bl;
	double xg;
	int i,l,e,k,c;
	char a[501],b[501];
	scanf("%lf%s%s",&bl,&a,&b);
	l=strlen(a);
	k=strlen(b);
	c=0;
	e=0;
	for(i=0;i<l;i++){
		if((a[i]!='A')&&(a[i]!='T')&&(a[i]!='C')&&(a[i]!='G')){
			c=1;
		}
	}
	for(i=0;i<k;i++){
		if((b[i]!='A')&&(b[i]!='T')&&(b[i]!='C')&&(b[i]!='G')){
			c=1;
		}
	}
	if(l==k&&c==0){
	for(i=0;i<l;i++){
		if(a[i]==b[i]){
			e++;
		}
	}
	xg=1.0*e/l;
	if(xg>bl){
		printf("yes");
	}
	else{
		printf("no");
	}}
	else{
		printf("error");
	}
	return 0;
}
int main()
{
	double m,n;
	int len1,len2,count=0,i;
	char s1[100],s2[100];
	scanf("%lf",&m);
	scanf("%s",s1);
	scanf("%s",s2);
	len1=strlen(s1);
	len2=strlen(s2);
	if(len1==len2)
	{
		for(i=0;i<len1;i++)
		{
		    if(s1[i]!='A'&&s1[i]!='T'&&s1[i]!='C'&&s1[i]!='G'||s2[i]!='A'&&s2[i]!='T'&&s2[i]!='C'&&s2[i]!='G')
			{    
				count=len1+1;
			    break;
			}
			if(s1[i]==s2[i])
				count++;
		}
		n=1.0*count/len1;
		if(count>=len1+1)
			printf("error\n");
		if(n>m&&n<=1)
			printf("yes\n");
		else if(n<=m)
			printf("no\n");
	}
	else
		printf("error\n");
	return 0;
	
}
int main()
{
	double n,m=0;
	char dna1[MAX+1],dna2[MAX+1];
	int len1=0,len2=0,count=0,i=0;
	scanf("%lf%s%s",&n,dna1,dna2);
	len1=strlen(dna1);
	len2=strlen(dna2);
	//printf("%d%d",len1,len2);
	if(len1!=len2){
		printf("error");
		return 0;
	}
	if(len1==len2){
		for(i=0;i<len1-1;i++){
			if((dna1[i]!='A'&&dna1[i]!='T'&&dna1[i]!='C'&&dna1[i]!='G')||(dna2[i]!='A'&&dna2[i]!='T'&&dna2[i]!='C'&&dna2[i]!='G')){
				printf("error");
				return 0;
			}
			else if(dna1[i]!=dna2[i]){
				count++;
			}
		}
		//printf("%d",count);
		m=(double)count/len1;
	    //printf("%.lf",m);
		if((1-m)>=n){
			printf("yes");
		}
		if((1-m)<n){
			printf("no");
		}
	}
	return 0;
}
int main(){
	double s,t;
	int m,n,flag=0;
	int e=0;
	char a[LEN],b[LEN];
	scanf("%lf",&s);
	scanf("%s",a);
	scanf("%s",b);
	m=strlen(a);
	n=strlen(b);
	for(int p=0;p<m;p++){
		if(a[p]=='A'||a[p]=='G'||a[p]=='C'||a[p]=='T'){
			flag=0;
		}else{
			flag=1;
			break;
		}
	}
	if((m!=n)||(flag==1)){
		printf("error");
	}else{
		for(int i=0;i<n;i++){
			if(a[i]==b[i]){
				e++;
			}
		}
		t=1.0*e/n;
		if(t>s){
			printf("yes");
		}else{
			printf("no");
		}
	}
	return 0;
}
int main(){
    int i,x,y,s,g=0;
	double rate,t;
	char a[510],b[510];
	s=0;

	scanf("%lf%s%s",&rate,a,b);
	x=strlen(a);
	y=strlen(b);
    if(x!=y){
	     printf("error");
	}
	else{
        for(i=0;i<x;i++){
			if(((a[i]!='A')&&(a[i]!='C')&&(a[i]!='G')&&(a[i]!='T'))||((b[i]!='A')&&(b[i]!='C')&&(b[i]!='G')&&(b[i]!='T'))){
			   
			   g=1;
			}
			else if(a[i]==b[i]){
			   s++;
			}
		}
    t=rate*x;
	if(g==0){
		if(s>t){
	      printf("yes");
	   }
	   else{
	      printf("no");
	   }
	}
	else{printf("error");}
	   
	}

return 0;
}
int main()
{
    int n,i,j,sa=0,m=0;
    double x,s;
    char a[105],b[105];
    scanf("%lf",&x);
    scanf("%s%s",&a,&b);
    if(strlen(a)!=strlen(b))
    {
        printf("error");
    }
    else
    {
        for(i=0;i<strlen(a);i++)
        {
            if((a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')||(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'))
            {
                printf("error");
                m=1;
                break;
            }
        }
        if(m==0){
        for(i=0;i<strlen(a);i++)
        {
            if(a[i]==b[i])
            {
                sa++;
            }
        }
        s=1.0*sa/strlen(a);
    if(s>x)
        printf("yes");
    else
        printf("no");
        }
    }    
   
    return 0;
}
int main(){
    int i,j,c,d;
    double l,m,n,x=0;
    char a[500],b[500];
    scanf("%lf %s %s",&l,&a,&b);
    
    m=strlen(a);
    n=strlen(b);
    for(i=0;i<m;i++){
        if(a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T'){
            d=0;
        }else{d=1;}
        
    }
    if(c!=0&&d!=0&&n==m){
        for(i=0;i<n;i++){
            if(a[i]==b[i]){
                x++;
            }else{x=x;}
        }
        if(l<(x/n)){
            printf("yes");
        }else{printf("no");}
    }else{printf("error");}
    return 0;
}
int main ()
{
    int i,j,k,js,l;
    char c[600],d[600];
    double a,b;
    scanf("%lf%s%s",&a,c,d);
    if (strlen(c)!=strlen(d))
    {
                  printf ("error");
                  return 0;           
    }
    l=strlen(c);
    js=0;
    for (i=0;c[i]!='\0';i++)
    {
        if ((c[i]=='A'||c[i]=='G'||c[i]=='C'||c[i]=='T')&&(d[i]=='A'||d[i]=='G'||d[i]=='C'||d[i]=='T'))
        {
                   if (c[i]==d[i])
                   js++;                                                                        
        }
        else 
        {
             printf ("error");
                  return 0;
        }        
    } 
    b=1.0*js/l;
    if (b>=a)
    printf ("yes");
    else 
    printf ("no");
    
    
    
    

    return 0;
}
int main(){
    int i,j,m=0,n=0,total=0,zong=0,A=1;
    double bl,suande;
    char z1[100];
    char z2[100];
    scanf("%lf",&bl);
    scanf("%s",&z1);
    scanf("%s",&z2);
    for(i=0;z1[i]!='\0';i++){
        m++;
    }
    for(i=0;z2[i]!='\0';i++){
        n++;
    }
    if(m!=n){
        printf("error");
    }
    else{
        for(i=0;z1[i]!='\0';i++){
            zong++;
            if(((z1[i]!='A')&&(z1[i]!='T')&&(z1[i]!='C')&&(z1[i]!='G'))||((z2[i]!='A')&&(z2[i]!='T')&&(z2[i]!='C')&&(z2[i]!='G'))){
                A=0;
                break;
            }
            else{
                if(z1[i]==z2[i]){
                    total++;
                }
            }
        }
        suande=1.0*total/zong;
        if((A==1)&&(suande<=bl)){
            printf("no");
        }
        else if((A==1)&&(suande>bl)){
            printf("yes");
        }
        else if(A==0){
            printf("error");
        }
        else{printf("a");}
    }
    
    
    return 0;
}
int main(){
	double a,y=0,m,n,t;
	int i,q=0;
	char dna1[501];
	char dna2[501];
	scanf("%lf",&a);
	scanf("%s",dna1);
	scanf("%s",dna2);
	m=strlen(dna1);
	n=strlen(dna2);
	if(m==n){
		for(i=0;i<m;i++){
			if((dna1[i]=='A'||dna1[i]=='T'||dna1[i]=='C'||dna1[i]=='G')&&(dna2[i]=='A'||dna2[i]=='T'||dna2[i]=='C'||dna2[i]=='G')){
			}else{
				q=1;
				break;
			}
		}
		for(i=0;i<m;i++){
			if(q==1){
				break;
			}else if(dna1[i]==dna2[i]){
				y++;
			}else if(dna1[i]!=dna2[i]){

			}
		}
		t=y/m;
	}else if(m!=n){
			q=1;
	}
	if((t>=a&&a!=0&&q==0)||(q==0&&t>a&&a==0)){
		printf("yes");
	}else if((t<a)&&(a!=0)&&(q==0)||((q==0)&&(t==0)&&(a==0))){
		printf("no");
	}else if(q==1){
		printf("error");
	}
	return 0;
}
int main(){
    char a[510],d[510];
    int i,e;
    double bl,k;
    scanf("%lf",&k);
    scanf("%s",a);
    scanf("%s",d);
    e=0;
    int len1=strlen(a);
    int len2=strlen(d);
    if(len1!=len2){
        printf("error");
    }else{
    for(i=0;i<len1;i++){
        if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C'){
            printf("error");
            return 0;
        }
        if(d[i]!='A'&&d[i]!='T'&&d[i]!='C'&&d[i]!='G'){
            printf("error");
            return 0;
        }
        else{
            if(a[i]==d[i]){
                e++;
            }
        }
    }
    bl=1.0*e/len1;
    if(bl>k){
        printf("yes");
    }else{
        printf("no");
    }
    }return 0;
}
int main(){
 int a,b,s,i;
 double p,l;
 scanf("%lf",&p);
 char m[500],n[500];
 scanf("%s",m);
 scanf("%s",n);
 a=strlen(m);
 b=strlen(n);
 s=0;
 if(a==b){
  for(i=0;i<a;i++){
   if((m[i]!='A'&&m[i]!='T'&&m[i]!='C'&&m[i]!='G')||(n[i]!='A'&&n[i]!='T'&&n[i]!='C'&&n[i]!='G')){
    printf("error");
    s=1;
    break;
   }
  }
 }else{
  printf("error");
  s=1;
 }
 if(s==0){
  for(i=0;i<a;i++){
   if(m[i]==n[i]){
    s=s+1;
   }
  }
  l=s*1.0/a;
  if(l>p){
   printf("yes");
  }
  else{
   printf("no");
  }
 }


 return 0;
}
int main(){
int i,j,x,y,u=0,t=0;
double n;
char a[505],b[505];
scanf("%lf",&n);
scanf("%s",a);
scanf("%s",b);;
x=strlen(a);
y=strlen(b);
if(x!=y) t=0;
else{
for(i=0;i<x;i++){
	if((a[i]=='A'||a[i]=='T'||a[i]=='G'||a[i]=='C')&&(b[i]=='A'||b[i]=='T'||b[i]=='G'||b[i]=='C') ){
		t+=1;
		if(a[i]==b[i]) 
		u+=1;
		
	}
	else if((a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')||(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C'))
	t=0;
}
}
if(t==0)  printf("error");
else if(u*1.0/x>=n) printf("yes");
else if(u*1.0/x<n) printf("no");	
return 0;
}
int main()
{   char  s1[MAX+1],s2[MAX+1];
    double w,m;
    int l1,l2;
    int i,j;
    int c=0;
    scanf("%lf",&w);
    scanf("%s",s1);
    scanf("%s",s2);
    l1=strlen(s1);
    l2=strlen(s2);
    if(l1!=l2)
    {  printf("error");}
    else
    {  for(i=0;s1[i];i++)
       {  if(!(s1[i]=='A'||s1[i]=='T'||s1[i]=='C'||s1[i]=='G'||s2[i]=='A'||s2[i]=='T'||s2[i]=='C'||s2[i]=='G'))
       {  printf("error");
          break;}}
       if(i==l1)
     {  
        for(j=0;s1[j];j++)
       {  if(s1[j]==s2[j])
          {  c++;}
          }
       m=(double)c/l1;
       if(m>w)
       {printf("yes");}
       else
       {printf("no");}
                      } 
       }
    return 0;
}
int main()
{
	double n,b;
	scanf("%lf",&n);
	int i,m,a,o;
	a=0;
	char ji[1000],yin[1000];
	scanf("%s",ji);
	scanf("%s",yin);
	m=strlen(ji);
	o=strlen(yin);
	if(m!=o)
	{
		printf("error");
		return 0;
	}
	for(i=0;i<m;i++)
	{
		if((ji[i]!='A'&&ji[i]!='C'&&ji[i]!='G'&&ji[i]!='T')||(yin[i]!='A'&&yin[i]!='C'&&yin[i]!='G'&&yin[i]!='T'))
		{
			printf("error");
			return 0;
		}
	}
	if(n>=1)
	{
		printf("no");
		return 0;
	}
	for(i=0;i<m;i++)
	{
		if(ji[i]==yin[i])
		{
			a++;
		}
	}
	b=1.0*a/1.0*m;
	if(b>=n)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}
	return 0;
}
int main()
{
	int i,j,same=0,flag=1;
	double n;
	char a[500],b[500],c[100];
	gets(c);
	n=atof(c);
	gets(a);
	gets(b);
    for(i=0;i<strlen(a);i++)
	{
		if((a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')||(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'))
		{flag=0;}
		if(a[i]==b[i])
		{
			same++;
		}
	}
    double m;
	m=1.0*same/strlen(a);
	if((strlen(a)!=strlen(b))||flag==0)
	{
		printf("error");
	}
    else if(m<=n)
	{
		printf("no");
	}
	else if(m>n)
	{
		printf("yes");
	}
	return 0;
}
int main(){
char a[51],b[51];
int i,j=0,k;
double n,t;
scanf("%lf",&n);
scanf("%s",a);//gets(a);
scanf("%s",b);//gets(b);
if(strlen(a)!=strlen(b)){printf("error");}
else{
	for(i=0;a[i]!='\0';i++){
		if(a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G'){printf("error");return 0;}
	}
for(i=0;b[i]!='\0';i++){
		if(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G'){printf("error");return 0;}
	}
for(i=0;a[i]!='\0';i++){
if(a[i]==b[i]){j++;}
}

k=strlen(a);
t=1.0*j/k;
if(t>n){printf("yes");}
else{printf("no");}
}
return 0;
}
int main()
{
	double a;
	char zfc[1000];
	char zfc1[1000];
	scanf("%lf",&a);
	int b=0;
	double c;
	int d=0;
	int i,j;
	scanf("%s",zfc);
	scanf("%s",zfc1);
	int e=0,f=0;
	int g=0,h=0;
	int z=0;
	for(i=0;i<strlen(zfc);i++){
		if(zfc[i]=='A'||zfc[i]=='T'||zfc[i]=='C'||zfc[i]=='G'){
			g++;
		}
	}
	for(i=0;i<strlen(zfc1);i++){
		if(zfc1[i]=='A'||zfc1[i]=='T'||zfc1[i]=='C'||zfc1[i]=='G'){
		h++;
		}
	}
	if((g!=strlen(zfc))||(h!=strlen(zfc1))||strlen(zfc)!=strlen(zfc1)){
		printf("error\n");
		z=1;
	}
	if(z!=1){
	for(j=0;j<strlen(zfc);j++){
		if(zfc[j]==zfc1[j]){
			b++;
		}
	}
	for(j=0;j<strlen(zfc);j++){
		d++;
	}
	c=1.0*b/d;
	
	if(c>a){
		printf("yes\n");
	}
	if(c<=a){
		printf("no\n");
	}
	}
	return 0;
}
int main(){
	int i,a=0,j,c,b;
	double n;
	char sz1[1000],sz2[1000];
	scanf("%lf",&n);
	scanf("%s",sz1);
	scanf("%s",sz2);
	for(i=0;sz1[i]!='\0';i++){
		c=i;
	}
	for(j=0;sz2[j]!='\0';j++){
		b=j;
	}
	if(c!=b){
		printf("error");
		return 0;
	}
	else {
		for(i=0;sz1[i]!='\0';i++){
			if((sz1[i]!='A'&&sz1[i]!='C'&&sz1[i]!='G'&&sz1[i]!='T')||(sz2[i]!='C'&&sz2[i]!='A'&&sz2[i]!='G'&&sz2[i]!='T')){
				printf("error");return 0;
			}
		}
		for(j=0;sz1[j]!='\0';j++){
			if(sz1[j]==sz2[j]&&(sz1[j]=='A'||sz1[j]=='C'||sz1[j]=='G'||sz1[j]=='T')&&(sz2[j]=='C'||sz2[j]=='A'||sz2[j]=='G'||sz2[j]=='T')){
				a++;
			}
		}
	}
	if(1.0*a/(c+1)>n){
		printf("yes");
	}
	else {
		printf("no");
	}
	return 0;
}
int main(){
	int i,sum=0,flag=1;
	double n1,n;
	char a[512],b[512];
    scanf("%lf%s%s",&n,a,b);
	if(strlen(a)!=strlen(b))
		printf("error\n");
	else
	{
        for(i=0;a[i]!=0;i++)
		{
   	    	if(a[i]!='A'&&a[i]!='T'&&a[i]!='G'&&a[i]!='C')
    	  		flag=0;
		}
       	for(i=0;b[i]!=0;i++)
		{
        	if(b[i]!='A'&&b[i]!='T'&&b[i]!='G'&&b[i]!='C')
    			flag=0;
		}
		if(flag)
		{
        	for(i=0;a[i]!=0;i++)
			{
		    	if(a[i]==b[i])
			    	sum++;
			}
    		n1=(double)sum/(double)strlen(a);
    		if(n1>n)
    			printf("yes\n");
    		else
	    		printf("no\n");
		}
		else
			printf("error\n");
	}
	return 0;
}
int main()
{
	char s1[100],s2[100];
	int changdu1,changdu2,i,js=0;
	double rate,rate1;
	scanf("%lf%s%s",&rate,s1,s2);
	changdu1=strlen(s1);
	changdu2=strlen(s2);
	if(changdu1!=changdu2)
		printf("error");
	else
	{
		for(i=0;i<changdu1;i++)
		{
			if((s1[i]!='A'&&s1[i]!='T'&&s1[i]!='G'&&s1[i]!='C')||(s2[i]!='A'&&s2[i]!='T'&&s2[i]!='G'&&s2[i]!='C'))
			{
				js=1;
				break;
			}
		}
		if(js==1)
			printf("error");
		else
		{
			for(i=0;i<changdu1;i++)
			{
				if(s1[i]==s2[i])
					js++;
			}
			rate1=1.0*js/changdu1;
			if(rate1>rate)
				printf("yes");
			else printf("no");
		}
	}
	return 0;
}
int main()
{
   char a[501],b[501];
   double c,d;
   int j=0,n,i,e=0,m;
   scanf("%lf%s%s",&c,a,b);
   n=strlen(a);
   m=strlen(b);
   if(n!=m)
     {
        e=1;
      }
   else{
   for(i=0;i<n;i++)
      {
         if((a[i]!='A'&&a[i]!='T'&&a[i]!='C'&&a[i]!='G')||(b[i]!='A'&&b[i]!='T'&&b[i]!='C'&&b[i]!='G')) 
           {
             e=1;
            }
       }}
   if(e==1)
     {
       printf("error");
      }
   while(e==0)
   {
    for(i=0;i<n;i++)
      {
         if(a[i]==b[i])
           {
              j++;
           }
       }
   d=1.0*j/n;
   if(d>=c)
     {
       printf("yes");
     }
   else
     {
       printf("no");
      }
    e=1;
   }
   return 0;
}
int main() {
	int i,j,l,k=0;
	double m;
	char a[500],b[500];
	scanf("%lf",&m);
	scanf("%s",a);
	scanf("%s",b);
	j=strlen(a);
	l=strlen(b);
	if(j!=l){
		printf("error");
		return 0;
	}
	for(i=0;i<j;i++){
		if((a[i]!='A'&&a[i]!='G'&&a[i]!='C'&&a[i]!='T')||(b[i]!='A'&&b[i]!='G'&&b[i]!='C'&&b[i]!='T')){
			printf("error");
			return 0;
		}
	}
	for(i=0;i<j;i++){
		if(a[i]==b[i]){
			k++;
		}
	}
	if(1.0*k/j>m){
		printf("yes");
	}
	else{
		printf("no");
	}
	return 0;
}
int main()
{
   int i,j,a,b,c=0;
   double n;
   scanf("%lf",&n);
   char A[500],B[500];

       scanf("%s %s",A,B);
   a=strlen(A);
   b=strlen(B);
   if(a!=b)
   {
       printf("error");
   return 0;
   }
   for(j=0;j<a;j++)
   {

      if(A[j]==B[j])
      {
         c++ ;
      }
      if(A[j]!='A'&&A[j]!='G'&&A[j]!='C'&&A[j]!='T')
      {
          printf("error");
           return 0;
      }
      if(B[j]!='A'&&B[j]!='G'&&B[j]!='C'&&B[j]!='T')
      {
          printf("error");
           return 0;
      }

   }
   if((1.0*c/a)>=n)
   {
       printf("yes");
   }else{
       printf("no");
   }


    return 0;
}
int main()
{
	double xgx,n;
	scanf("%lf",&xgx);
	int i,j,k,l=0,m=0;
	char jy1[10086],jy2[10086];
	scanf("%s",jy1);
	scanf("%s",jy2);
	j=strlen(jy1);
	k=strlen(jy2);
	jy1[j]='\0';
	jy2[k]='\0';
	if(j!=k){
		printf("error\n");
	}
	else{
		for(i=0;i<j;i++){
			if(((jy1[i]!='A')&&(jy1[i]!='T')&&(jy1[i]!='C')&&(jy1[i]!='G'))||((jy2[i]!='A')&&(jy2[i]!='T')&&(jy2[i]!='C')&&(jy2[i]!='G'))){
				l++;
			}
		}
			if(l!=0){
				printf("error\n");
			}
			else{
				for(i=0;i<j;i++){
					if(jy1[i]==jy2[i]){
						m++;
					}
				}
			n=1.0*m/j;
			if(n>xgx){
				printf("yes\n");
			}
			else{
				printf("no\n");
			}
			}
	}
	return 0;
}
int main(){
	double rate;
	scanf("%lf",&rate);
	char DNA[2][501];
	scanf("%s",DNA[0]);
	scanf("%s",DNA[1]);
	int t;
	int i,j;
	int number=0;
	t=strlen(DNA[0]);
	int w;
	w=strlen(DNA[1]);
	if (t!=w)
	{
		printf("error");
		
		return 0;
	}
	for (i=0;i<t;i++)
	{
		if (DNA[0][i]!='A'&&DNA[0][i]!='T'&&DNA[0][i]!='C'&&DNA[0][i]!='G')
		{
			printf("error");
			
			return 0;
		}
		if (DNA[1][i]!='A'&&DNA[1][i]!='T'&&DNA[1][i]!='C'&&DNA[1][i]!='G')
		{
			printf("error");
			
			return 0;
		}
		if (DNA[0][i]==DNA[1][i])
		{
			number++;
		}
		
	}
	double r;
	r=1.00*number/t;
	if (r>=rate)
	{
		printf("yes");
	}
	else
	{
		printf("no");
	}


	
	return 0;

}