Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
38161 jiabokai 判断字符串是否为回文 C++ 通过 1 MS 252 KB 249 2024-01-25 15:15:20

Tests(4/4):


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


测评信息: