Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156917 邓弘锐 字符串长度判断 C++ Accepted 1 MS 272 KB 329 2026-07-11 14:28:28

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[1005]; int main() { char a[150],b[150],c=0,d=0; cin>>a>>b; for(int i=0;; i++) { if(a[i]=='\0') break; else c++; } for(int i=0;; i++) { if(b[i]=='\0') break; else d++; } if(c==d) cout<<"yes"; else cout<<"no"; return 0; }