20分求助
查看原帖
20分求助
1288602
Xianyujunzhu楼主2024/4/21 11:01
#include<bits/stdc++.h>
using namespace std;
int main(){
	string s,str;
	getline(cin,s);
	str=s;
	reverse(str.begin(),str.end());
	if(str==s) cout<<"yes";
	else cout<<"no";
	return 0;
}
2024/4/21 11:01
加载中...