| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155542 | 杨金卓 | 字符串相等判断 | C++ | Accepted | 1 MS | 272 KB | 425 | 2026-06-07 15:18:20 |
#include<bits/stdc++.h> using namespace std; char a[1000]; char b[1000]; int main(){ cin>>a; cin>>b; for(int i=0;a[i]!='\0'&&b[i]!='\0';i++){ if(a[i]<b[i]){ cout<<"no"; return 0; } if(a[i]>b[i]){ cout<<"no"; return 0; } } int a1 = strlen(a); int b1 = strlen(b); if(a1>b1){ cout<<"no"; return 0; } if(a1<b1){ cout<<"no"; return 0; } cout<<"yes"; return 0; }