Run ID:152401

提交时间:2026-04-25 21:24:29

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string s; int n; cin>>s; n=s.length(); for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(s[n-i-1]==s[j]){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }