#include "stdio.h"
void main( )
{
long int m,m1,n,a,b;
scanf("%ld",&m);
m1=m;
n=m*m1;
while(m1)
{
a=m1%10;
b=n%10;
if(a!=b)
break;
m1=m1/10;
n=n/10;
}
if(m1!=0)
printf("%d不是一个同构数",m);
else
printf("%d是一个同构数",m);
}
char a[10],b[10];
int i,n,j;
scanf("%d",&i);
itoa(i,a,10);
itoa(i*i,b,10);
n=strlen(b)-strlen(a);
for(j=0;j
break;
if(j>=strlen(a))
printf("yes");
else printf("no");
#include
int main()
{
int x;
scanf("%d",x);
int x2 = x*x;
if(x2 % 100 == x || x2%10 == x )
//举例 x=25,则x2 = 225, x2%100 = 25 = x,;;;;;;x=5,则x2=25,x2 % 10 =5 =x;
printf("%d",1);
else
printf("%d",0);
return 0;
}