字符串A==B,如果相等就输出yes。只对一半,不知道缺了什么。
#include <stdio.h>#include <string.h>
int main()
{
char a[100],b[100];
while(scanf("%s%s",a,b)!=EOF)
{
if(strcmp(a,b)==0)
printf("YES\n");
else printf("NO\n");
}
return 0;
}
我提交的时候只对了50%,又没发现哪里错了,尴尬。。。
2016-12-14 11:26
2016-12-14 11:34
2016-12-14 11:41
2016-12-14 11:44
2016-12-14 11:47
2016-12-14 11:53
2016-12-14 11:55
2016-12-14 15:41
2016-12-14 15:49