简答题 偏难
#22650

# include <iostream> # include <string > using namespace std ; int main ( ) { st…

#include<iostream>
#include<string >
using namespace std;

int main( )
	{ string
	Str;
	cin>>str;
	int n = str.size( );
	bool isPlalindrome = true;
	for (int i =0; i<n/2;i++){
		if (str[i] !=str[n-i-1]) isPlalindrome = false;
	}
	if(isPlalindrome)
		cout << ”Yes” << endl;
	else cout << ”No” << endl;
}

输入:abceecba

输出:_________

未登录也能判分,登录后才会记录
答案与解析
正确答案:<div> <p>Yes</p></div>
这道题暂未补解析。