Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121283 陈骏睿 字符串长度判断 C++ Runtime Error 0 MS 280 KB 429 2025-06-07 10:42:39

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char i[1000],n[1000]; int n1,n2; cin>>i[1000]>>n[1000]; n1=strlen(i); n2=strlen(n); if(n1==n2){ cout<<"Yes"; }else{ cout<<"NO"; } return 0; }


Run Info:

*** stack smashing detected ***: ./Main terminated