Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
44274 yejiaxiangBMT 判断字符串是否为回文 C++ 通过 0 MS 264 KB 231 2024-03-29 16:06:22

Tests(4/4):


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


测评信息: