Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
44275 张淳睿 判断字符串是否为回文 C++ 编译错误 0 MS 0 KB 255 2024-03-29 16:07:37

Tests(0/0):


#include<iostream> #include<cstring> using namespace std; int main() { char s[100]; gets(s); int i=0; int j=strlen(s)-1; while((i<j)&&(s[i]==s[j])){ i++; j--; } if(i>=j){ cout<<"yes"; } else{ cout<<"no"; } return 0;


测评信息: