Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75690 sh25_zhuwy 判断字符串是否为回文 C++ 通过 0 MS 252 KB 308 2025-12-09 14:22:04

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main() { string k; cin>>k; int n=k.length(); for(int u=1;u<=n/2+1;u++) { if(k[u-1]!=k[n-u]) { cout<<"no"; break; } else if(u==n/2+1) { cout<<"yes"; } } return 0; }


测评信息: