Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81545 张黄源 字符串长度判断 C++ Accepted 1 MS 276 KB 395 2024-07-12 14:41:32

Tests(10/10):


Code:

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