题解 | #密码验证#
密码验证
http://www.nowcoder.com/practice/895b3b552d80485cb5e426a0ebf9a251
#include <stdio.h> #include <string.h> int main() { char arr1[20],arr2[20]; int a = 0; scanf("%s",arr1); scanf("%s",arr2); a=strcmp(arr1,arr2); if(a==0) printf("same\n"); else printf("different\n"); }