Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88561 陈昊然 字符串相等判断 C++ Accepted 1 MS 272 KB 313 2024-08-19 12:09:40

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char c[1001],q[1001]; int b=-2e9,a,p; int main(){ cin>>c>>q; int n=strlen(c),d=strlen(q); if(n!=d){ cout<<"no"; return 0; } for(int i=0;i<=n-1;i++){ if(c[i]==q[i]){ }else{ cout<<"no"; return 0; } } cout<<"yes"; return 0; }