Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
89154 sh25_zhangzh 判断字符串是否为回文 C++ 通过 0 MS 256 KB 298 2026-05-22 15:43:13

Tests(4/4):


#include<iostream> #include<string> using namespace std; int main() { string a; getline(cin,a); int n=a.size(); bool find=true; for(int i=0;i<n/2;i++) { if(a[i]!=a[n-i-1]) { find=false; } } if(find==true) { printf("yes"); } else { printf("no"); } }


测评信息: