Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88462 王馨桐 回文字符串I C++ Accepted 1 MS 284 KB 256 2024-08-19 10:49:06

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char s[1000]; cin >>s; int n=strlen(s); int l=0,r=n-1; while(l<=r){ if(s[l]==s[r]){ l++; r--; }else{ cout <<"No"; return 0; } } cout <<"Yes"; return 0; }