Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100162 令狐文丽 字符串相等判断 C++ Accepted 1 MS 276 KB 291 2024-12-05 20:48:11

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char ch1[1001] ,ch2[1001]; //strlen(str);//长度 //strcat(ch1,ch2)//; //strcpy(ch1,ch2); //strcmp();//比较 cin>>ch1>>ch2; if(strcmp(ch1,ch2)==0){ cout<<"yes"; }else cout<<"no"; return 0; }