Run ID:102208
提交时间:2024-12-21 13:15:45
#include<iostream> using namespace std; int main (){ char a[1001]; bool falg=true; int b; cin>>a>>b; for(int i=0;i<b/2;i++){ if(a[i]!=b-1-i){ falg=false; } } if(falg=true){ cout<<"yes"; } else cout<<"no"; return 0; }