Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103516 李梓睿 字符串长度判断 Python3 Compile Error 0 MS 0 KB 589 2024-12-28 19:12:45

Tests(0/0):


Code:

#include<iostream> //#include<bits/stdc++.h> #include<cstring> using namespace std; char s1[151]; char s2[151]; int main() { int s1_l=strlen(s1),s2_l=0; cin>>s1>>s2; //for(int i=0; i<151; i++) { // if(s1[i]!='\0') { // s1_l++; // } else { // break; // } // } //for(int i=0; i<151; i++) { //if(s2[i]!='\0') { // s2_l++; //} else { // break; // } //} //if(s1_l==s2_l){ // cout<<"yes"; //}else{ // cout<<"no"; //} return 0; }


Run Info:

  File "Main.py", line 2
    //#include
     ^
SyntaxError: invalid syntax