| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81517 | 刘宇轩 | 字符串长度判断 | C++ | Runtime Error | 0 MS | 276 KB | 274 | 2024-07-12 14:32:44 |
#include<bits/stdc++.h> using namespace std; int main(){ int n=0,m=0; char a[151],b[151]; cin>>a>>b; while(a[n]!=' '){ n++; } while(b[m]!='\0'){ m++; } if(n!=m){ cout<<"no"; } else{ cout<<"yes"; } return 0; }
Runtime Error:Segmentation fault