Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157543 曹奕晗 回文字符串I C++ Accepted 1 MS 284 KB 297 2026-07-30 10:27:59

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char s[1005]; cin>>s; int c=1; int len=strlen(s); for(int i=0;i<=len/2;i++) { if(s[i]==s[len-i-1]) { continue; } else { cout<<"No"; c=0; break; } } if(c) cout<<"Yes"; }