Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82194 杜奕辰 字符串相等判断 C++ Wrong Answer 1 MS 276 KB 353 2024-07-13 09:10:00

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[1001]; char b[1001]; cin>>a>>b; for(int i=0;i<=strlen(a);i++){ if(a[i]>='A'&&a[i]<='Z'){ a[i]=a[i]+32; } } for(int i=0;i<=strlen(b);i++){ if(b[i]>='A'&&b[i]<='Z'){ b[i]=b[i]+32; } } if(a==b){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


Run Info:

------Input------
9KKt2LEjCIM5UVUI3oG4gMD8 9KKt2LEjCIM5UVUI3oG4gMD8
------Answer-----
yes
------Your output-----
no