/*这样应更合理一些*/
#include<stdio.h>
int main(void)
{
char a[6]={'a','b','c'},ch,temp;
int i=0;
while((ch=getchar())!='\n')
{ temp=a[i];
a[i]=ch;
a[i+3]=temp;
i++;
}
i=0;
while((ch=getchar())!='\n')
{ if(a[i]==ch)
{
temp=a[i];
a[i]=a[i+3];
i++;
}
if(i==3)
printf("%c %c %c",a[0],a[1],a[2]);
}
return 0;
}
#include<stdio.h>
int main(void)
{
char a[6]={'a','b','c'},ch,temp;
int i=0;
while((ch=getchar())!='\n')
{ temp=a[i];
a[i]=ch;
a[i+3]=temp;
i++;
}
i=0;
while((ch=getchar())!='\n')
{ if(a[i]==ch)
{
temp=a[i];
a[i]=a[i+3];
i++;
}
if(i==3)
printf("%c %c %c",a[0],a[1],a[2]);
}
return 0;
}